MementoScope constructor

const MementoScope({
  1. Key? key,
  2. int maxCapacity = 256,
  3. List<StateRef> refs = const [],
  4. required Widget child,
})

Creates a scope under which you can use undo/redo methods.

The parameters maxCapacity, refs and child must no be null.

Implementation

const MementoScope({
  Key? key,
  this.maxCapacity = 256,
  this.refs = const [],
  required this.child,
}) : super(key: key);