ChapterInfo constructor
ChapterInfo({})
构造函数
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',
);