EntityResult class

Result of entity creation

Constructors

EntityResult({required String className, required String filePath, required String content, List<String> imports = const [], List<FieldDefinition> fields = const [], bool created = true, String? error, String? stackTrace})
const
EntityResult.failure(String? error, {String? stackTrace})
const

Properties

className → String
final
content → String
final
created → bool
final
error → String?
final
fields → List<FieldDefinition>
final
filePath → String
final
hashCode → int
The hash code for this object.
no setterinherited
imports → List<String>
final
isSuccess → bool
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stackTrace → String?
Stack trace captured when an unexpected error is caught, or null on success / handled typed failures (issue #383).
final

Methods

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