TextPaginate class

计算字符在文本中的索引

Constructors

TextPaginate({required String text, required TextStyle textStyle, required double pageWidth, required double pageHeight, EdgeInsets padding = EdgeInsets.zero, TextDirection textDirection = TextDirection.ltr})

Properties

hashCode → int
The hash code for this object.
no setterinherited
padding → EdgeInsets
final
pageCount → int
no setter
pageHeight → double
final
pageWidth → double
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
text → String
final
textDirection → TextDirection
final
textStyle → TextStyle
final

Methods

getPageText(int index) → String
获取指定页的文字
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paginate() → Future<List<int>>
分页处理,返回每个分页的开始下标列表
toString() → String
A string representation of this object.
inherited

Operators

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