Trim constructor

Trim({
  1. dynamic startOffset,
  2. dynamic endOffset,
  3. dynamic duration,
})

Implementation

Trim({dynamic startOffset, dynamic endOffset, dynamic duration}) {
  _startOffset = startOffset;
  _endOffset = endOffset;
  _duration = duration;
  var valuesList = [_startOffset, _endOffset, _duration];
  valuesList.removeWhere((element) => element == null);
  if (valuesList.isEmpty || valuesList.length > 2) {
    ArgumentError('Wrong number of parameters sent to Trim');
  }
}