BaseTextPaginate class

计算字符在文本中的索引

Constructors

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

Properties

fullText String
final
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
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