TypeIdentifier class
represents a type identifier consists of name and full library name
- Annotations
-
- @freezed
Constructors
- TypeIdentifier({required String typeName, required String packageName, required String packageRelativeLibraryPath})
-
constfactory
- TypeIdentifier.fromNameAndLibraryPath({required String typeName, required String? libraryPath})
-
factory
Properties
-
copyWith
→ $TypeIdentifierCopyWith<
TypeIdentifier> -
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDynamic → bool
-
returns true if this type identifier is the dynamic type
no setter
- isNullable → bool
-
returns true if this type identifier contains the nullable flag
no setter
- nonNullablePackageAndTypeName → String
-
returns a String containing the package name and the type name without nullable flag
no setter
- nonNullableTypeName → String
-
returns the name without the nullable flag
no setter
- nullableTypeName → String
-
returns the name with the nullable flag
no setter
- packageAndTypeName → String
-
returns a String containing the package name and the type name
no setter
- packageName → String
-
the name of the package defining that type
no setterinherited
- packageRelativeLibraryPath → String
-
the library path inside the package defining that type
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- typeName → String
-
the name of this type
no setterinherited
Methods
-
asNonNullable(
) → TypeIdentifier - returns a copy of this type identifier without the nullable flag
-
asNullable(
) → TypeIdentifier - returns a copy of this type identifier with the nullable flag
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited