videoItem property

MovieEntity? videoItem

Implementation

MovieEntity? get videoItem => this._videoItem;
void videoItem=(MovieEntity? value)

Implementation

set videoItem(MovieEntity? value) {
  if (isAnimating) {
    stop();
  }
  if (value == null) {
    clear();
  }
  if (this._videoItem != null && this._videoItem!.autorelease) {
    this._videoItem!.dispose();
  }
  this._videoItem = value;
  if (value != null) {
    final movieParams = value.params;
    assert(movieParams.viewBoxWidth >= 0 || movieParams.viewBoxHeight >= 0,
        "Invalid SVGA file!");
    this.duration = Duration(
        milliseconds: (movieParams.frames / movieParams.fps * 1000).toInt());
  } else {
    this.duration = Duration.zero;
  }
}