TrinaResizePushAndPull<T> class
Changes the size of the object to be changed by offset and pushes or pulls the size of the remaining items.
Change the width of the item corresponding to isMainItem by offset. Negative or positive.
items are all siblings that will be affected when the size of the item corresponding to isMainItem is changed.
isMainItem is a callback
that should return whether or not the item
is subject to resizing.
getItemSize is a callback
that should return the size of item
.
getItemMinSize is a callback
that should return the minimum width of item
.
setItemSize is a callback
that should change the size of item
to size
.
update finishes resizing and returns whether or not to change.
- Inheritance
-
- Object
- TrinaResize<
T> - TrinaResizePushAndPull
Constructors
Properties
- getItemMinSize → double Function(T item)
-
finalinherited
- getItemSize → double Function(T item)
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isFirstMain → bool
-
no setterinherited
- isLastMain → bool
-
no setterinherited
- isMainItem → bool Function(T item)
-
finalinherited
-
items
→ List<
T> -
finalinherited
- offset → double
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- setItemSize → void Function(T item, double size)
-
finalinherited
Methods
-
getFirstItemNegative(
) → T? -
inherited
-
getFirstItemPositive(
) → T? -
inherited
-
getFirstWideItemNegative(
) → T? -
inherited
-
getFirstWideItemPositive(
) → T? -
inherited
-
iterateWideItemNegative(
) → Iterable< T> -
inherited
-
iterateWideItemPositive(
) → Iterable< T> -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
) → bool -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited