DataClassBuilder class

Constructors

DataClassBuilder(String name, {bool isConst = true})

Properties

hashCode int
The hash code for this object.
no setterinherited
isConst bool
final
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addConstructor(String name, Map<String, String> properties) → void
addMethod({required String returnType, required String name, List<ArgumentBuilder> arguments = const <ArgumentBuilder>[], required String body}) → void
addProperty(String type, String name, {String? defaultValue, PropertyBuilderJsonConverter jsonConverter = defaultPropertyBuilderJsonConverter}) → void
build({bool nullSafety = true, bool jsonParser = true, bool copyWith = true, bool equalityComparer = true}) String
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