initialize static method

void initialize()

Implementation

static void initialize() {
  methodChannel.setMethodCallHandler((call) async {
    switch (call.method) {
      case 'getMaskRegions':
        final ids = (call.arguments as List).cast<String>();
        return _MaskRegistry.instance.getRegions(ids);
      default:
        throw PlatformException(
          code: 'unimplemented',
          message: 'Method ${call.method} not implemented',
        );
    }
  });
}