seekTo method
Implementation
Future<void> seekTo(Duration moment) async {
if (_isDisposed) {
return;
}
if (moment == null) {
return;
}
if (moment > value.duration) {
moment = value.duration;
} else if (moment < const Duration()) {
moment = const Duration();
}
await channel.invokeMethod('seekTo', <String, dynamic>{
'textureId': _textureId,
'location': moment.inSeconds,
});
value = value.copyWith(position: moment);
}