DuckSectionHeaderData class

Data model for a DuckSectionHeader component.

Inheritance
Annotations
  • @JsonSerializable.new()

Constructors

DuckSectionHeaderData({required String title})
Creates a DuckSectionHeaderData instance.
DuckSectionHeaderData.fromJson(Map<String, dynamic> json)
Creates a DuckSectionHeaderData instance from a JSON map.
factory
DuckSectionHeaderData.mock()
Creates a mock DuckSectionHeaderData instance for testing purposes.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
title → String
The title text of the section header.
final
type → String
The unique type identifier for this component.
no setteroverride

Methods

buildWidget(BuildContext context) → Widget
Builds the widget for this component.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this component to a JSON map.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

componentType → const String
The component type identifier for DuckSectionHeader.