DanmuModel class

Constructors

DanmuModel({required int id, required String text, required Duration startTime, List<InlineSpan> spans = const [], bool isClickable = true, double? specifyY, ImageProvider<Object>? imageProvider, String? package, bool isRepeatable = false, double opacity = 1, EdgeInsets padding = const EdgeInsets.symmetric(vertical: 2, horizontal: 8), EdgeInsets margin = const EdgeInsets.symmetric(vertical: 2, horizontal: 8), double strokeWidth = 1, Size imageSize = const Size(52, 20), int flag = DanmuFlag.scroll | DanmuFlag.clickable, BoxDecoration? decoration, BoxDecoration? foregroundDecoration, AlignmentGeometry? alignment, Duration? insertTime, TextStyle textStyle = const TextStyle(color: Colors.white, fontSize: 16, fontWeight: FontWeight.w500, decoration: TextDecoration.none)})

Properties

alignment AlignmentGeometry?
final
decoration BoxDecoration?
final
flag int
final
foregroundDecoration BoxDecoration?
final
hashCode int
The hash code for this object.
no setterinherited
id int
final
imageProvider ImageProvider<Object>?
final
imageSize Size
final
insertTime Duration
final
isClickable bool
final
isRepeatable bool
final
margin EdgeInsets
final
opacity double
final
package String?
final
padding EdgeInsets
final
plainText String
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spans List<InlineSpan>
final
specifyY double?
final
startTime Duration
final
strokeWidth double
final
text String
final
textStyle TextStyle
final

Methods

copyWith({int? id, String? text, Duration? startTime, double? specifyY, List<InlineSpan>? spans, bool? isClickable, ImageProvider<Object>? imageProvider, String? package, bool? isRepeatable, double? opacity, EdgeInsets? padding, EdgeInsets? margin, double? strokeWidth, Size? imageSize, int? flag, BoxDecoration? decoration, BoxDecoration? foregroundDecoration, AlignmentGeometry? alignment, Duration? insertTime, TextStyle? textStyle}) DanmuModel
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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