MarqueeDirection enum

ComMarquee - 一个高性能的跑马灯组件

主要特性:

  • 支持四个方向的滚动(左、右、上、下)
  • 可配置的滚动速度和暂停时间
  • 支持鼠标悬停暂停
  • 智能内容检测(只有内容超出容器时才滚动)
  • 内置控制器支持编程控制
  • 优化的性能和内存管理

使用示例:

ComMarquee(
  child: Text('这是一个滚动的文本'),
  direction: MarqueeDirection.left,
  speed: 50.0,
  pauseOnHover: true,
)

跑马灯滚动方向

Inheritance
Available extensions

Values

left → const MarqueeDirection

向左滚动

向右滚动

up → const MarqueeDirection

向上滚动

down → const MarqueeDirection

向下滚动

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Constants

values → const List<MarqueeDirection>
A constant List of the values in this enum, in order of their declaration.