Update lib/game/components/ball.dart

Co-authored-by: Alejandro Santiago <dev@alestiago.com>
pull/86/head
Erick 4 years ago committed by GitHub
parent 4006a2fde2
commit fe9e6ae5c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -48,6 +48,7 @@ class BallController extends Component with HasGameRef<PinballGame> {
/// Adds helper methods to the [Ball]
extension BallX on Ball {
/// Returns the controller instance of the ball
// TODO(erickzanardo): Remove the need of an extension.
BallController get controller {
return children.whereType<BallController>().first;
}

Loading…
Cancel
Save