presentViewController function Null safety
- String viewControllerClass,
Implementation
Future<void> presentViewController(
String viewControllerClass, {
bool withNavigationController = false,
}) async {
assert(viewControllerClass.isNotEmpty);
await kMethodChannel.invokeMethod(
'PlatformService::presentViewController',
{
'viewControllerClass': viewControllerClass,
'withNavigationController': withNavigationController,
},
);
}