'Target of URI doesn't exist: 'package:flame/collisions.dart'

This example for collision detection has an import that is not found, do you know why?

It says: Target of URI doesn't exist: 'package:flame/collisions.dart'

pubspec.yaml
 flame: 1.0.0


Solution 1:[1]

The new collision detection system was not released in 1.0.0, you can depend on 1.1.0-releasecandidate.4 to use it (we'll release 1.1.0 on Friday).

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 spydon