SenzuThumbnailSprite class

Constructors

SenzuThumbnailSprite({required String url, required int columns, required int rows, required int intervalSec, double? thumbWidth, double? thumbHeight})
const

Properties

columns int
final
hashCode int
The hash code for this object.
no setterinherited
intervalSec int
final
rows int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
thumbHeight double?
no setter
thumbWidth double?
Sprite sheet-ийн нийт хэмжээ мэдэгдэж байвал нэг thumbnail-ийн хэмжээг буцаана. Мэдэгдэхгүй бол null.
no setter
url String
final

Methods

fractionalOffsetAt(Duration position) FractionalOffset
FractionalOffset — CachedNetworkImage alignment-д ашиглана
gridAt(Duration position) → ({int col, int row})
Column + row index
indexAt(Duration position) int
Тухайн position-д харгалзах sprite sheet дэх index
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rectAt(Duration position, {double? sheetWidth, double? sheetHeight}) Rect
Sprite sheet дотор тухайн thumbnail-ийн байршил. sheetWidth, sheetHeight — бодит зургийн хэмжээ (pixels).
toString() String
A string representation of this object.
inherited

Operators

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