onVideoController method

void onVideoController()

Implementation

void onVideoController()
{
  if (_controller == null) return;
  if(!_controller!.value.isPlaying)
  {
    shutterbuttonmodel.icon = Icons.pause;
    shutterbuttonmodel.size = 65;
    if (_controller!.value.position == _controller!.value.duration) seek(0);
  }
  else
  {
    shutterbuttonmodel.icon = Icons.play_arrow;
    shutterbuttonmodel.size = 65;
  }
}