In the famous flutter_architecture_samples repo, and exactly in this main.dart, the main function needs 2 arguments:
void main({
@required TodosInteractor todosInteractor,
@required UserRepository userRepository,
}) {
runApp(Injector(
todosInteractor: todosInteractor,
userRepository: userRepository,
child: TodosBlocProvider(
bloc: TodosListBloc(todosInteractor),
child: MaterialApp(...
This is the first time I see a flutter main function with arguments, can someone explain? And especially how are you supposed to pass arguments to it.