ReorderableEntity class

Represents child with some extra information.

When animating all children in this package, this entity is important to have access to all needed values of child.

With this entity, it is possible to know where the child is positioned and which order that child has inside all children.

Also the current state of child is added as information: isBuilding, isNew and hasSwappedOrder.

Constructors

ReorderableEntity({required ValueKey key, required int originalOrderId, required int updatedOrderId, required Offset originalOffset, required Offset updatedOffset, required Size size, required bool isBuildingOffset, required bool hasSwappedOrder})
const
ReorderableEntity.create({required ValueKey key, required int updatedOrderId, Offset? offset, Size? size})
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
hasSwappedOrder bool
final
isBuildingOffset bool
final
isNew bool
no setter
key ValueKey
final
originalOffset Offset
final
originalOrderId int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size Size
final
updatedOffset Offset
final
updatedOrderId int
final

Methods

copyWith({Size? size, bool? isBuildingOffset}) ReorderableEntity
creationFinished({required Offset? offset, required Size size}) ReorderableEntity
dragUpdated({required int updatedOrderId, required Offset updatedOffset}) ReorderableEntity
fadedIn() ReorderableEntity
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
positionUpdated() ReorderableEntity
toString() String
A string representation of this object.
override
updated({required int updatedOrderId, required Offset? updatedOffset, required Size? size}) ReorderableEntity

Operators

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