PackageDependencySpec class

Package dependency specification (https://dart.dev/tools/pub/dependencies)

Annotations
  • @immutable
  • @SumType()

Properties

git GitPackageDependencySpec?
finalinherited
hashCode int
The hash code for this object.
no setterinherited
hosted HostedPackageDependencySpec?
finalinherited
path PathPackageDependencySpec?
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sdk SdkPackageDependencySpec?
finalinherited

Methods

dump<$T>($T make({GitPackageDependencySpec? git, HostedPackageDependencySpec? hosted, PathPackageDependencySpec? path, SdkPackageDependencySpec? sdk})) → $T
inherited
iswitch<$T>({required $T sdk(SdkPackageDependencySpec), required $T git(GitPackageDependencySpec), required $T path(PathPackageDependencySpec), required $T hosted(HostedPackageDependencySpec)}) → $T
inherited
iswitcho<$T>({$T sdk(SdkPackageDependencySpec)?, $T git(GitPackageDependencySpec)?, $T path(PathPackageDependencySpec)?, $T hosted(HostedPackageDependencySpec)?, required $T otherwise()}) → $T
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
package() String
Returns package name
toString() String
A string representation of this object.
inherited

Operators

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