Step class

Represents a single step in a stepper component.

Contains the step's title, optional content builder for step details, and an optional custom icon. The content builder is called when the step becomes active to show step-specific content.

Example:

Step(
  title: Text('Personal Info'),
  icon: Icon(Icons.person),
  contentBuilder: (context) => PersonalInfoForm(),
);

Constructors

Step.new({required Widget title, WidgetBuilder? contentBuilder, Widget? icon})
Creates a Step.
const

Properties

contentBuilder WidgetBuilder?
Optional builder for step content shown when active.
final
hashCode int
The hash code for this object.
no setterinherited
icon Widget?
Optional custom icon for the step indicator.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title Widget
The title widget displayed for this step.
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