UndoManagerOptions class
Constructors
-
UndoManagerOptions({BigInt? captureTimeoutMillis, List<
Origin> ? trackedOrigins, bool? captureTransaction}) -
const
- UndoManagerOptions.fromJson(Object? json_)
-
Returns a new instance from a JSON value.
May throw if the value does not have the expected structure.
factory
Properties
- captureTimeoutMillis → BigInt?
-
Undo-/redo-able updates are grouped together in time-constrained snapshots. This field
determines the period of time, every snapshot will be automatically made in.
final
- captureTransaction → bool?
-
Custom logic decider, that along with
tracked-origins
can be used to determine if transaction changes should be captured or not.final - hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
trackedOrigins
→ List<
Origin> ? -
List of origins tracked by corresponding
UndoManager
. If provided, it will track only updates made within transactions of specific origin. If not provided, it will track only updates made within transaction with no origin defined.final
Methods
-
copyWith(
{Option< BigInt> ? captureTimeoutMillis, Option<List< ? trackedOrigins, Option<Origin> >bool> ? captureTransaction}) → UndoManagerOptions - Returns a new instance by overriding the values passed as arguments
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> - Returns this as a serializable JSON value.
-
toString(
) → String -
A string representation of this object.
override
-
toWasm(
) → List< Object?> - Returns this as a WASM canonical abi value.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override