From 682b6173f20ff9d27d458a3cfbaf6bfca598cbfa Mon Sep 17 00:00:00 2001 From: alestiago Date: Thu, 31 Mar 2022 17:33:59 +0100 Subject: [PATCH] feat: included mustCallSuper --- lib/flame/component_controller.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/flame/component_controller.dart b/lib/flame/component_controller.dart index 2bbf5ca9..851028f0 100644 --- a/lib/flame/component_controller.dart +++ b/lib/flame/component_controller.dart @@ -1,5 +1,6 @@ import 'package:flame/components.dart'; import 'package:flame_bloc/flame_bloc.dart'; +import 'package:flutter/foundation.dart'; /// {@template component_controller} /// A [ComponentController] is a [Component] in charge of handling the logic @@ -30,6 +31,7 @@ mixin Controls on Component { late final T controller; @override + @mustCallSuper Future onLoad() async { await super.onLoad(); await add(controller);