SelectOption class

Annotations
  • @JsonSerializable(includeIfNull: false)

Constructors

SelectOption({required String label, required String value, String? description, Emoji? emoji, bool? defaultSelected})
Constructor
SelectOption.fromJson(Map<String, dynamic> json)
From json
factory

Properties

defaultSelected bool?
will render this option as selected by default
final
description String?
an additional description of the option, max 100 characters
final
emoji Emoji?
partial emoji object
final
hashCode int
The hash code for this object.
no setterinherited
label String
the user-facing name of the option, max 100 characters
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
the dev-define value of the option, max 100 characters
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
To json
toString() String
A string representation of this object.
inherited

Operators

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