FormField class Null safety

Implementers
Annotations
  • @freezed

Constructors

FormField.bool({required String key, String? description, bool? value})
const
factory
FormField.color({required String key, String? description, Color? value})
const
factory
FormField.dateTime({required String key, String? description, DateTime? value})
const
factory
FormField.double({required String key, String? description, double? value})
const
factory
FormField.duration({required String key, String? description, Duration? value})
const
factory
FormField.fromJson(Map<String, Object?> json)
factory
FormField.int({required String key, String? description, int? value})
const
factory
FormField.map({required String key, String? description, Map<String, Object?>? value})
const
factory
FormField.num({required String key, String? description, num? value})
const
factory
FormField.object({required String key, String? description, Object? value})
const
factory
FormField.string({required String key, String? description, String? value})
const
factory

Properties

copyWith → $FormFieldCopyWith<FormField>
@JsonKey(ignore: true), read-only, inherited
description String?
read-only, inherited
hashCode int
The hash code for this object.
read-only, inherited
key String
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
value Object?
read-only, inherited

Methods

map<TResult extends Object?>({required TResult object(FormObjectField value), required TResult map(FormMapField value), required TResult string(FormStringField value), required TResult bool(FormBoolField value), required TResult double(FormDoubleField value), required TResult int(FormIntegerField value), required TResult num(FormNumField value), required TResult dateTime(FormDateTimeField value), required TResult duration(FormDurationField value), required TResult color(FormColorField value)}) → TResult
@optionalTypeArgs, inherited
mapOrNull<TResult extends Object?>({TResult? object(FormObjectField value)?, TResult? map(FormMapField value)?, TResult? string(FormStringField value)?, TResult? bool(FormBoolField value)?, TResult? double(FormDoubleField value)?, TResult? int(FormIntegerField value)?, TResult? num(FormNumField value)?, TResult? dateTime(FormDateTimeField value)?, TResult? duration(FormDurationField value)?, TResult? color(FormColorField value)?}) → TResult?
@optionalTypeArgs, inherited
maybeMap<TResult extends Object?>({TResult object(FormObjectField value)?, TResult map(FormMapField value)?, TResult string(FormStringField value)?, TResult bool(FormBoolField value)?, TResult double(FormDoubleField value)?, TResult int(FormIntegerField value)?, TResult num(FormNumField value)?, TResult dateTime(FormDateTimeField value)?, TResult duration(FormDurationField value)?, TResult color(FormColorField value)?, required TResult orElse()}) → TResult
@optionalTypeArgs, inherited
maybeWhen<TResult extends Object?>({TResult object(String key, String? description, Object? value)?, TResult map(String key, String? description, Map<String, Object?>? value)?, TResult string(String key, String? description, String? value)?, TResult bool(String key, String? description, bool? value)?, TResult double(String key, String? description, double? value)?, TResult int(String key, String? description, int? value)?, TResult num(String key, String? description, num? value)?, TResult dateTime(String key, String? description, DateTime? value)?, TResult duration(String key, String? description, Duration? value)?, TResult color(String key, String? description, Color? value)?, required TResult orElse()}) → TResult
@optionalTypeArgs, inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult object(String key, String? description, Object? value), required TResult map(String key, String? description, Map<String, Object?>? value), required TResult string(String key, String? description, String? value), required TResult bool(String key, String? description, bool? value), required TResult double(String key, String? description, double? value), required TResult int(String key, String? description, int? value), required TResult num(String key, String? description, num? value), required TResult dateTime(String key, String? description, DateTime? value), required TResult duration(String key, String? description, Duration? value), required TResult color(String key, String? description, Color? value)}) → TResult
@optionalTypeArgs, inherited
whenOrNull<TResult extends Object?>({TResult? object(String key, String? description, Object? value)?, TResult? map(String key, String? description, Map<String, Object?>? value)?, TResult? string(String key, String? description, String? value)?, TResult? bool(String key, String? description, bool? value)?, TResult? double(String key, String? description, double? value)?, TResult? int(String key, String? description, int? value)?, TResult? num(String key, String? description, num? value)?, TResult? dateTime(String key, String? description, DateTime? value)?, TResult? duration(String key, String? description, Duration? value)?, TResult? color(String key, String? description, Color? value)?}) → TResult?
@optionalTypeArgs, inherited

Operators

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