Attribute class

Constructors

Attribute({int? id, required String description, required String attribute, required String expression, required String type})
const
Attribute.boolean({int? id, required String description, required String attribute, required String expression})
Creates a Boolean type attribute
factory
Attribute.fromJson(Map<String, dynamic> json)
factory
Attribute.number({int? id, required String description, required String attribute, required String expression})
Creates a Number type attribute
factory
Attribute.string({int? id, required String description, required String attribute, required String expression})
Creates a String type attribute
factory

Properties

attribute → String
final
description → String
final
expression → String
final
hashCode → int
The hash code for this object.
no setteroverride
id → int?
final
isBoolean → bool
Check if the attribute is a Boolean type
no setter
isNumber → bool
Check if the attribute is a Number type
no setter
isString → bool
Check if the attribute is a String type
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → String
final

Methods

copyWith({int? id, String? description, String? attribute, String? expression, String? type}) → Attribute
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override