createAndRegisterWindow method
Future<void>
createAndRegisterWindow(
{ - required String routeName,
- required String theme,
- String? argsJson,
- void onCreation()?,
})
override
Implementation
@override
Future<void> createAndRegisterWindow({
required final String routeName,
required final String theme,
final String? argsJson,
final void Function()? onCreation,
}) async {
// Call native method to create window
onCreation?.call();
await methodChannel.invokeMethod('createWindow', <String, dynamic>{
"routeName": routeName,
"argsJson": argsJson ?? '{}',
"theme": theme,
});
}