EasyBarrage class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- EasyBarrage
Constructors
-
EasyBarrage.new({Key? key, required double width, required double height, required EasyBarrageController controller, double itemSpaceWidth = 45, int rowNum = 3, Map<
int, Duration> ? channelDelayMap, double originStart = 0, TransitionDirection direction = TransitionDirection.rtl, bool randomItemSpace = false, Duration duration = const Duration(seconds: 5), double rowSpaceHeight = 10})
Properties
-
channelDelayMap
→ Map<
int, Duration> ? -
轨道下标:对应轨道弹幕延迟出现的时间
final
- controller → EasyBarrageController
-
final
- direction → TransitionDirection
-
默认从右到左
final
- duration → Duration
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
final
- itemSpaceWidth → double
-
一行中,每个item的水平间距宽度
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- originStart → double
-
弹幕从某个位置开始出现,默认是0
final
- randomItemSpace → bool
-
是否随机
final
- rowNum → int
-
final
- rowSpaceHeight → double
-
行轨道之间的行间距高度
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- width → double
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< StatefulWidget> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited