jumpTo method

  1. @override
Future<void> jumpTo(
  1. int viewId,
  2. double millisecond
)
override

Implementation

@override
Future<void> jumpTo(int viewId, double millisecond) async {
  try {
    var methodChannel = MethodChannel('${channelPrefix}_$viewId');
    await methodChannel.invokeMethod<void>('jumpTo', {
      'millisecond': millisecond,
    });
  } on PlatformException catch (e) {
    debugPrint('${e.code}: ${e.message}');
  }
}