AbstractUserPreferences class Null safety
Abstraction of a display for the preference pages.
Constructors
- AbstractUserPreferences({required dynamic setState(dynamic ()), required dynamic context, required dynamic userPreferences, required dynamic appLocalizations, required dynamic themeData})
Properties
- appLocalizations → dynamic
-
final
- context → dynamic
-
final
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- setState → dynamic Function(dynamic ())
-
Function that refreshes the page.
final
- themeData → dynamic
-
final
- userPreferences → dynamic
-
final
Methods
-
getBody(
) → List - Body of the content.
-
getContent(
{bool withHeader = true, bool withBody = true}) → List - Returns possibly the header and the body.
-
getForwardIcon(
) → dynamic -
getHeader(
) → dynamic - Returns the tappable header.
-
getHeaderHelper(
bool? collapsed) → dynamic - Returns the header (helper) (no padding, no tapping).
-
getOnboardingContent(
) → List - Returns a slightly different version of getContent for the onboarding.
-
getOnlyHeader(
) → dynamic -
getPreferencePageType(
) → dynamic - Returns the type of the corresponding page if relevant, or else null.
-
getSubtitle(
) → dynamic - Subtitle of the header, always visible.
-
getTitle(
) → dynamic - Title of the header, always visible.
-
getTitleString(
) → String - Title of the header, always visible.
-
isCompactTitle(
) → bool - Should the expand/collapse icon be next to the title.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
runHeaderAction(
) → Future< void> - Returns the action when we tap on the header.
-
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited