ReorderableController class abstract
- Implementers
Constructors
Properties
-
builtKeyValues
→ Set<
String> -
Key values of children built since the item count decreased.
final
-
childrenKeyMap
→ Map<
String, ReorderableEntity> -
final
-
childrenOrderMap
→ Map<
int, ReorderableEntity> -
final
- draggedEntity ↔ ReorderableEntity?
-
Instance of dragged entity when dragging starts.
getter/setter pair
-
draggingAnimationMap
→ Map<
ValueKey, DraggingAnimationEntity> -
Visible offsets of all children animated while dragging, by their key.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
lastBuiltChildren
→ Map<
String, Widget> -
Last built widget of every child by its key value.
final
-
lastRemovedEntities
↔ List<
ReorderableEntity> -
Entities of the children removed by the last update of the children.
getter/setter pair
-
offsetMap
→ Map<
int, Offset> -
final
- positionChangeDelay ↔ Duration
-
Delay for position changes caused by removed children.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addBuiltChild(
{required ValueKey key, required Widget child}) → void -
Saves
childas the last built widget ofkey. -
getReorderableEntity(
{required ValueKey key, required int index}) → ReorderableEntity -
Creates or updates ReorderableEntity related to
keyand returns it. -
handleCreatedChild(
{required Offset? offset, required Size size, required ReorderableEntity reorderableEntity}) → ReorderableEntity -
Updates specific values of
reorderableEntityand update maps. -
handleMovingFinished(
{required ReorderableEntity reorderableEntity}) → ReorderableEntity -
Updates offset and order id of
reorderableEntityfaded in. -
handleOpacityFinished(
{required ReorderableEntity reorderableEntity}) → ReorderableEntity -
Updates offset and order id of
reorderableEntityfaded in. -
handleSizeChanged(
) → void - Resets all entities in childrenOrderMap and childrenKeyMap.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeBuiltChild(
{required ValueKey key, required Widget child}) → void -
Removes
childofkeyfrom lastBuiltChildren after it was disposed. -
replaceMaps(
{required Map< String, ReorderableEntity> updatedChildrenKeyMap, required Map<int, ReorderableEntity> updatedChildrenOrderMap}) → void -
shortenMapsToItemCount(
{required int itemCount}) → void -
Removes all children that have a higher position the
itemCount. -
toString(
) → String -
A string representation of this object.
inherited
-
updateToActualPositions(
) → void - Iterates through childrenKeyMap and updates ReorderableEntity.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited