ReorderableBuilderController class

Handles logic to set all ReorderableEntity that are related to the children.

Every child gets a ReorderableEntity that contains information about the position, the size and so on. This is need for calculations later when the children are moving or changing their position.

Inheritance

Properties

childrenKeyMap Map<dynamic, ReorderableEntity>
finalinherited
childrenOrderMap Map<int, ReorderableEntity>
finalinherited
draggedEntity ReorderableEntity?
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
offsetMap Map<int, Offset>
finalinherited
releasedReorderableEntity ReleasedReorderableEntity?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollOffset Offset
Holding this value for better performance.
getter/setter pairinherited

Methods

getReorderableEntity({required ValueKey key, required int index}) ReorderableEntity
inherited
handleCreatedChild({required Offset? offset, required ReorderableEntity reorderableEntity}) → void
inherited
handleDeviceOrientationChanged() → void
inherited
handleDragEnd() List<ReorderUpdateEntity>?
inherited
handleDragStarted({required ReorderableEntity reorderableEntity, required Offset currentScrollOffset, required List<int> lockedIndices, required bool isScrollableOutside}) → void
inherited
handleDragUpdate({required PointerMoveEvent pointerMoveEvent, required List<int> lockedIndices}) bool
inherited
handleMovingFinished({required ReorderableEntity reorderableEntity}) → void
inherited
handleOpacityFinished({required ReorderableEntity reorderableEntity}) → void
inherited
initChildren({required List<Widget> children}) → void
Adds ReorderableEntity for all children to two maps.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reorderList({required List items, required List<ReorderUpdateEntity> reorderUpdateEntities}) List
Reorders list of items that depends on reorderUpdateEntities.
inherited
replaceMaps({required Map<dynamic, ReorderableEntity> updatedChildrenKeyMap, required Map<int, ReorderableEntity> updatedChildrenOrderMap}) → void
inherited
toString() String
A string representation of this object.
inherited
updateChildren({required List<Widget> children}) → void
Iterates through children and updates childrenKeyMap and childrenOrderMap.
updateReleasedReorderableEntity({required ReleasedReorderableEntity releasedReorderableEntity}) → void
inherited
updateToActualPositions() → void
inherited

Operators

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