onPanUpdate method

  1. @override
Future<void> onPanUpdate(
  1. int viewId,
  2. bool isStart,
  3. double x,
  4. double y,
)
override

Implementation

@override
Future<void> onPanUpdate(int viewId, bool isStart, double x, double y) async {
  if (Platform.isIOS) {
    try {
      var methodChannel = MethodChannel('${channelPrefix}_$viewId');
      await methodChannel.invokeMethod<void>('onPanUpdate', {
        'isStart': isStart,
        'x': x,
        'y': y,
      });
    } on PlatformException catch (e) {
      debugPrint('${e.code}: ${e.message}');
    }
  }
}