initCallbacks method
void
initCallbacks(
- dynamic serviceConnection(
- 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}'",
);
}
});
}