setCurrentScreen method

  1. @override
Future<bool> setCurrentScreen(
  1. String screenName
)
override

Implementation

@override
Future<bool> setCurrentScreen(String screenName) async {
  // TODO: implement event
  try {
    final result = await methodChannel
        .invokeMethod<bool>('setCurrentScreen', {'screenName': screenName});
    return result ?? false;
  } catch (e) {
    //print(e);
  }
  return false;
}