DanmuItem<T extends DanmuModel> constructor

DanmuItem<T extends DanmuModel>({
  1. required T model,
  2. int? flag,
  3. ImageProvider<Object>? imageAsset,
  4. Size imageSize = const Size(52, 20),
  5. double textScaleFactor = 1,
  6. dynamic layoutChildren(
    1. List<PlaceholderSpan>
    )?,
})

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,
  );
}