canArrange method

bool canArrange(
  1. Iterable<CanvasChildId> ids,
  2. CanvasArrange action
)

Checks whether action would change order, without notifying or mutating. Targets are deduplicated and all IDs are validated, as in the commands. Forward/backward throw StateError if a required layout size is unknown.

Implementation

bool canArrange(Iterable<CanvasChildId> ids, CanvasArrange action) =>
    _arrangedOrder(ids, action) != null;