SplittableMixin<T> mixin

Mix this in with a class that can be split at an integer index.

Mixin Applications

Properties

hashCode int
The hash code for this object.
no setterinherited
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
splitAt(int index, {bool ignoreFloatedWidgetSpans = false}) List<T>
Splits this object at the given index and returns a list of one or two objects. If index is zero, or if index is greater than the number of items in this object, a list containing just this object is returned. If this object was split, a list of two objects is returned, containing the two new split objects.
splitAtIndex(SplitAtIndex index, {bool ignoreFloatedWidgetSpans = false}) List<T>
Splits this object at the given index and returns a list of one or two objects. If index is zero, or if index is greater than the number of items in this object, a list containing just this object is returned. If this object was split, a list of two objects is returned, containing the two new split objects.
toString() String
A string representation of this object.
inherited

Operators

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