UniversalType class final
Universal template for containing information about type
- Annotations
-
- @immutable
Constructors
-
UniversalType.new({required String type, required bool isRequired, String? name, String? description, String? format, String? jsonKey, String? defaultValue, bool nullable = false, List<
UniversalCollections> wrappingCollections = const [], String? enumType, double? min, double? max, int? minItems, int? maxItems, int? minLength, int? maxLength, String? pattern, bool? uniqueItems}) -
Constructor for UniversalType
const
Properties
- defaultValue → String?
-
Holding object default value
final
- description → String?
-
Object description
final
- enumType → String?
-
If this type is enum
final
- format → String?
-
Format for object
"Digit": {
"type": "number",
"format": "double"
}
must be
double
final - hashCode → int
-
The hash code for this object.
no setteroverride
- isRequired → bool
-
Whether or not this field is required
final
- jsonKey → String?
-
Object json key
final
- max → double?
-
final
- maxItems → int?
-
final
- maxLength → int?
-
final
- min → double?
-
final
- minItems → int?
-
final
- minLength → int?
-
final
- name → String?
-
Object name
final
- nullable → bool
-
Whether or not this field is nullable
final
- pattern → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
Object type
final
- uniqueItems → bool?
-
final
-
wrappingCollections
→ List<
UniversalCollections> -
Array depth, 0 if not a list
if arrayDepth = 2
List<List<Object>>
final
Methods
-
compareTo(
UniversalType other) → int - Function for compare to put required named parameters first
-
copyWith(
{String? type, String? name, String? description, String? format, String? jsonKey, String? defaultValue, bool? isRequired, String? enumType, List< UniversalCollections> ? wrappingCollections, bool? nullable, double? min, double? max, int? minItems, int? maxItems, int? minLength, int? maxLength, String? pattern, bool? uniqueItems}) → UniversalType - Copy of UniversalType with new values
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override