initCallbacks method

  1. @override
void initCallbacks(
  1. dynamic serviceConnection(
    1. bool connected
    )
)
override

Implementation

@override
void initCallbacks(Function(bool connected) serviceConnection) {
  methodChannel.setMethodCallHandler((MethodCall call) async {
    switch (call.method) {
      case 'serviceConnection':
        serviceConnection(call.arguments);
        break;

      default:
        throw PlatformException(
          code: 'Unimplemented',
          details: "The glyph_interface plugin for Flutter does not implement the method '${call.method}'",
        );
    }
  });
}