ChapterInfo constructor

ChapterInfo({
  1. String? id,
  2. required int startMs,
  3. required int endMs,
  4. required String title,
  5. String? thumbnailUrl,
})

构造函数

Constructor

Implementation

ChapterInfo({
  this.id,
  required this.startMs,
  required this.endMs,
  required this.title,
  this.thumbnailUrl,
})  : assert(
        startMs >= 0,
        'startMs must be non-negative, got: $startMs',
      ),
      assert(
        endMs >= startMs,
        'endMs must be >= startMs, got startMs=$startMs, endMs=$endMs',
      );