Shows the app in another locale or theme for a screenshot, without restarting it, and puts it back afterwards.
The page, its state and the navigation stack stay where they are, so a playbook can photograph one screen in every language it ships.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
Static Methods
-
bundledLocales(
) → Future< List< String> > -
The language codes of the language files bundled with the app, e.g.
[en, es], sorted. -
show(
{String? locale, String? theme}) → Future< Future< void> Function()> -
Shows
locale(a language code likees) andtheme(a theme id), and returns a function that puts back the ones shown before. A null argument keeps the current one.