SheetRow<T> constructor

const SheetRow<T>({
  1. T? key,
  2. int? start,
  3. int? frames,
  4. double? fps,
  5. bool? loop,
})

Implementation

const SheetRow({
  this.key,
  int? start,
  this.frames,
  this.fps,
  this.loop,
}) : assert(start == null || start >= 0, 'A row starts at column 0 or later.'),
     assert(frames == null || frames >= 1, 'A row plays at least one frame.'),
     assert(
       fps == null || (fps >= 0 && fps < double.infinity),
       'A rate is finite and not negative.',
     ),
     start = start ?? 0,
     durations = null;