DanmuItem<T extends DanmuModel> constructor
DanmuItem<T extends DanmuModel> ({
- required T model,
- int? flag,
- ImageProvider<
Object> ? imageAsset, - Size imageSize = const Size(52, 20),
- double textScaleFactor = 1,
- dynamic layoutChildren()?,
Implementation
DanmuItem({
required T model,
int? flag,
this.imageAsset,
Size imageSize = const Size(52, 20),
double textScaleFactor = 1,
Function(List<PlaceholderSpan>)? layoutChildren,
}) {
updateModel(
model,
flag: flag ?? model.flag,
imageSize: imageSize,
textScaleFactor: textScaleFactor,
layoutChildren: layoutChildren,
);
}