IsRequired class final

Marks a class-first field as required on the JSON wire.

The JSON key must be present. This does not change Dart nullability.

Inheritance
Annotations
  • @Target.new({TargetKind.field, TargetKind.parameter})

Constructors

IsRequired()
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
kind → String
The constraint identifier.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
value → Object?
The constraint argument (num, int, or String), if any.
finalinherited

Methods

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