setLooping method
Set whether the player should loop the media.
Implementation
bool setLooping(bool looping) {
if (looping != this.looping.value) {
if (id.value != null) {
_methodChannel.invokeMethod('setLooping', {
'id': id.value,
'value': looping,
});
}
this.looping.value = looping;
return true;
}
return false;
}