DataClassBuilder class Null safety

Constructors

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

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
isConst bool
final
name String
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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 non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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