restorationId property

String? restorationId

Restoration ID to save and restore the state of the CupertinoTabScaffold.

This property only has an effect when no controller has been provided: If it is non-null (and no controller has been provided), the scaffold will persist and restore the currently selected tab index. If a controller has been provided, it is the responsibility of the owner of that controller to persist and restore it, e.g. by using a RestorableCupertinoTabController.

The state of this widget is persisted in a RestorationBucket claimed from the surrounding RestorationScope using the provided restoration ID.

See also:


final String? restorationId;