TypeAliasDeclaration class sealed

represents a found TypeAliasDeclaration

Implemented types
Available extensions
Annotations
  • @freezed

Constructors

TypeAliasDeclaration.new({required String name, required String aliasedTypeName, required bool isDeprecated, required bool isExperimental, Set<String>? entryPoints, required String relativePath})
const
factory

Properties

aliasedTypeName String
name of the aliased type
no setterinherited
copyWith → $TypeAliasDeclarationCopyWith<TypeAliasDeclaration>
Create a copy of TypeAliasDeclaration with the given fields replaced by the non-null parameter values.
no setterinherited
entryPoints Set<String>?
entry points this type alias is reachable through
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isDeprecated bool
whether this type alias is deprecated
no setterinherited
isExperimental bool
whether this type alias is experimental
no setterinherited
name String
name of this type alias
no setterinherited
relativePath String
the relative path of the library
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
signature String
the signature of this type alias declaration.
no setter

Methods

map<TResult extends Object?>(TResult $default(_TypeAliasDeclaration value)) → TResult

Available on TypeAliasDeclaration, provided by the TypeAliasDeclarationPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_TypeAliasDeclaration value)?) → TResult?

Available on TypeAliasDeclaration, provided by the TypeAliasDeclarationPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_TypeAliasDeclaration value)?, {required TResult orElse()}) → TResult

Available on TypeAliasDeclaration, provided by the TypeAliasDeclarationPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(String name, String aliasedTypeName, bool isDeprecated, bool isExperimental, Set<String>? entryPoints, String relativePath)?, {required TResult orElse()}) → TResult

Available on TypeAliasDeclaration, provided by the TypeAliasDeclarationPatterns extension

A variant of when that fallback to an orElse callback.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(String name, String aliasedTypeName, bool isDeprecated, bool isExperimental, Set<String>? entryPoints, String relativePath)) → TResult

Available on TypeAliasDeclaration, provided by the TypeAliasDeclarationPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(String name, String aliasedTypeName, bool isDeprecated, bool isExperimental, Set<String>? entryPoints, String relativePath)?) → TResult?

Available on TypeAliasDeclaration, provided by the TypeAliasDeclarationPatterns extension

A variant of when that fallback to returning null

Operators

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