startActivity function

Future<void> startActivity (
  1. String activityClass,
  2. {Map<String, dynamic> extras: const {}}
)

Implementation

Future<void> startActivity(
  String activityClass, {
  Map<String, dynamic> extras = const {},
}) async {
  assert(activityClass != null && activityClass.isNotEmpty);
  await kMethodChannel.invokeMethod(
    'PlatformService::startActivity',
    {'activityClass': activityClass, 'extras': extras},
  );
}