TextPastePolicy class final

Policy for deciding when paste should be applied over multiple frames.

Constructors

TextPastePolicy({int largePasteThreshold = 8192, int chunkSize = 2048})
const
TextPastePolicy.immediate()
Applies each received paste segment in one synchronous edit.
const

Properties

chunkSize → int
Maximum approximate chunk size in Dart string code units. Ignored by TextPastePolicy.immediate.
final
hashCode → int
The hash code for this object.
no setterinherited
largePasteThreshold → int
Pasted text longer than this many Dart string code units is chunked. Ignored by TextPastePolicy.immediate.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

chunks(String text) → Iterable<String>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldChunk(String text) → bool
toString() → String
A string representation of this object.
inherited

Operators

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