listener_lego 1.0.2
listener_lego: ^1.0.2 copied to clipboard
listener lego
listener_lego #
listener lego
Installation #
- open terminal in the lego project root directory, enter the following command for install cli. and create a new lego project if you don't have one.
flutter pub global activate lego_cli
lego create
- in terminal, enter the following command for add lego to project.
lego add listener_lego
Usage #
add listener any where. then that listener will be auto registered.
import '../../../../../../../../../../../main.dart';
@ReadyForListener()
Future<void> newListener(BuildContext context) async {
// add listener here
}