secureApplicationHandler static method

Future secureApplicationHandler(
  1. MethodCall methodCall,
  2. dynamic lock,
  3. dynamic unlock
)

Implementation

static Future<dynamic> secureApplicationHandler(
    MethodCall methodCall, lock, unlock) async {
  switch (methodCall.method) {
    case 'lock':
      lock();
      break;
    case 'unlock':
      unlock();
      break;
    default:
      throw MissingPluginException('notImplemented');
  }
}