Arg<T> class abstract

Inheritance
Implementers
Annotations

Constructors

Arg.new(T value, {String? name})
const
Arg.empty()
const

Properties

$name String?
final
$value → T?
final
description String?
finalinherited
fields List<Field>
no setterinherited
groupName String
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
isNullable bool
finalinherited
name String
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → T
no setter

Methods

buildFields(BuildContext context) Widget
Converts the fields into a Widget that will be rendered in the settings side panel.
override
init({required String name}) Arg<T>
Creates a copy of this using the provided name for late initialization. If $name was already set, it should have precedence over name.
isNullified(BuildContext context) bool
Checks if this has been nullified by toggleNullification.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve(BuildContext context) → T
slugify(String name) String
inherited
toggleNullification(BuildContext context, {required bool nullify}) → void
Adds/removes Field.nullabilitySymbol to/from all fields depending on the nullify state. If nullify is true, the Field.nullabilitySymbol is added. If nullify is false, the Field.nullabilitySymbol is removed.
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited
valueFromQueryGroup(Map<String, String> group) → T
Converts a query group to a value of type T.
inherited
valueOf<TField>(String name, Map<String, String> group) → TField?
Decodes the value of the Field with name from the query group using the FieldCodec.toValue from Field.codec.
inherited

Operators

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

Static Methods

fixed<T>(T value) ConstArg<T>