Trim constructor
Trim({
- dynamic startOffset,
- dynamic endOffset,
- 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');
}
}