OnboardingModel class
A model representing the content and styling for an onboarding page.
The OnboardingModel
class is used to define the content and appearance of
an individual onboarding page. It includes attributes for an image, title,
subtitle, and optional text styles. This class is typically used to supply
data to onboarding screens or similar multi-step UI flows.
Parameters:
- imageUrl: The URL or asset path for the page's image. This is typically used to display the main image for the onboarding page.
- title: The main title or heading for the onboarding page.
- subTitle: The subtitle or description text for the onboarding page.
- imageSize: The size of the image on the page. Default is
Size(250, 250)
. - titleTextStyle: The text style for the title. Default is an empty
TextStyle
. - subTitleTextStyle: The text style for the subtitle. Default is an empty
TextStyle
. - backgroundColor: The background color for the onboarding page. This is optional.
Usage:
You can create instances of OnboardingModel
to define the content and styling
for each page in an onboarding sequence. This model is typically passed to an
onboarding screen to provide the data for rendering each page.
Constructors
Properties
- backgroundColor → Color?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- imageFit → BoxFit
-
final
- imageSize → Size?
-
final
- imageUrl → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subTitle → String
-
final
- subTitleTextStyle → TextStyle
-
final
- title → String
-
final
- titleTextStyle → TextStyle
-
final
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