FastSettingsCategoryDescriptor class

This file defines the FastSettingsCategoryDescriptor class, which is a model for a settings category in the Fastyle Forms library.

A FastSettingsCategoryDescriptor instance contains a title, a map of FastFormFieldDescriptor objects, and a boolean flag indicating whether the category should be shown or hidden.

This class extends FastDescriptor, which provides methods for cloning, copying, and merging instances of the class.

Inheritance
  • Object
  • TModel
  • FastDescriptor
  • FastSettingsCategoryDescriptor
Implementers

Constructors

FastSettingsCategoryDescriptor({required String titleText, Map<String, FastFormFieldDescriptor> fields = const {}, bool show = true})
Creates a new instance of FastSettingsCategoryDescriptor.
const

Properties

fields Map<String, FastFormFieldDescriptor>
A map of FastFormFieldDescriptor objects that define the fields in the category.
final
hashCode int
The hash code for this object.
no setterinherited
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
show bool
A boolean flag indicating whether the category should be shown or hidden.
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
titleText String
The title of the category.
final

Methods

assignValue<T>(T? value, {T? defaultValue, bool loose = true}) → T?
inherited
clone() FastSettingsCategoryDescriptor
Creates a copy of this TModel.
override
copyWith({Map<String, FastFormFieldDescriptor>? fields, String? titleText, bool? show}) FastSettingsCategoryDescriptor
Creates a copy of this TModel but with the given fields replaced with the new values.
override
copyWithDefaults() → TModel
inherited
merge(covariant FastSettingsCategoryDescriptor model) FastSettingsCategoryDescriptor
Creates a new TModel where each properties from this object has been merged with the matching properties from the other object.
override
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