DartDeclaration class

Constructors

DartDeclaration({required JsonKeyMutate jsonKey, String? type, String? name, String? assignment})

Properties

assignment String?
getter/setter pair
decorators List<Decorator>
getter/setter pair
enumValues List<String>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
imports List<String>
getter/setter pair
isEnum bool
no setter
jsonKey JsonKeyMutate
getter/setter pair
keyComands List<Command>
getter/setter pair
name String?
getter/setter pair
nestedClasses List<JsonModel>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String?
getter/setter pair
valueCommands List<Command>
getter/setter pair

Methods

addImport(dynamic import) → void
getDecorator() String?
getEnum(String className) Enum
gets enum from className getEnum('User');
getImportStrings() List<String>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
nullableModefier(dynamic value) String
setEnumValues(List<String> values) → void
setName(String newName) → void
stringifyAssignment(dynamic value) String
stringifyDecorator(dynamic deco) String
toDeclaration(String className) String
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromCommand(List<Command> commandList, dynamic self, {dynamic testSubject, required String key, dynamic value}) DartDeclaration
fromKeyValue(dynamic key, dynamic val) DartDeclaration
getNameFromJsonKey(String theString) String?
getParameterString(String theString) String
getTypeFromJsonKey(String theString) String?