SpannableGridEditingStrategy class
Determines behaviour in the editing mode.
In the editing mode of the SpannableGrid user can move cell to available empty places. This class contains options that allows to customize behaviour in the editing mode.
The default strategy allows editing cells, user can enter editing mode by long tap on the cell, can move the selected cell to any empty place, and should tap on the cell to exit editing mode.
Constructors
- SpannableGridEditingStrategy({bool allowed = true, bool enterOnLongTap = true, bool exitOnTap = true, bool immediate = false, bool moveOnlyToNearby = false})
-
Create a default editing strategy instance.
const
- SpannableGridEditingStrategy.disabled()
-
Create a strategy instance that disable editing.
factory
- SpannableGridEditingStrategy.immediate()
-
Create a strategy instance that allow immediate moving cells.
factory
Properties
- allowed → bool
-
Determines if the editing of cells is allowed.
final
- enterOnLongTap → bool
-
Enter editing mode by long tap on the cell.
final
- exitOnTap → bool
-
Exit editing mode by tap on selected cell.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- immediate → bool
-
Allows immediate editing.
final
- moveOnlyToNearby → bool
-
Allow to move the cell only to nearby empty place.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{bool? allowed, bool? enterOnLongTap, bool? exitOnTap, bool? immediate, bool? moveOnlyToNearby}) → SpannableGridEditingStrategy - Create a copy of the editing strategy with some parameters changed.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited