DanmuItem<T extends DanmuModel> class

Constructors

DanmuItem({required T model, int? flag, ImageProvider<Object>? imageAsset, Size imageSize = const Size(52, 20), double textScaleFactor = 1, dynamic layoutChildren(List<PlaceholderSpan>)?})

Properties

configuration ImageConfiguration
getter/setter pair
dTime Duration?
getter/setter pair
endPosition Offset
no setter
endTime Duration
no setter
flag int
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
imageAsset ImageProvider<Object>?
final
imageRect Rect
no setter
isImage bool
no setter
isPause bool
no setter
isSelected bool
getter/setter pair
isTextSpan bool
no setter
isValid bool
no setter
model → T
no setter
position Offset?
getter/setter pair
rect Rect
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
simulation DanmuSimulation
getter/setter pair
size Size
getter/setter pair
span InlineSpan?
getter/setter pair
startPosition Offset
no setter
startTime Duration
no setter
textPainter TextPainter?
getter/setter pair
textStrokePainter TextPainter?
getter/setter pair
textStrokeSpan InlineSpan?
getter/setter pair

Methods

getWidgetOffset(BuildContext context, GlobalObjectKey<State<StatefulWidget>> targetKey) Offset
getWidgetSize(Widget widget) Size
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() → void
play() → void
toString() String
A string representation of this object.
inherited
updateModel(dynamic model, {int? flag, Size imageSize = const Size(52, 20), double textScaleFactor = 1, dynamic layoutChildren(List<PlaceholderSpan>)?}) → void
valueKey([Object? value]) ValueKey

Operators

operator ==(Object other) bool
The equality operator.
inherited