RestorationScopeModifier constructor

const RestorationScopeModifier({
  1. Key? key,
  2. Widget? child,
  3. Key? modifierKey,
  4. required String? restorationId,
})

Creates a RestorationScope.

Providing null as the restorationId turns off state restoration for the child and its descendants.

The child must not be null.

Implementation

const RestorationScopeModifier({
  super.key,
  super.child,
  super.modifierKey,
  required this.restorationId,
});