CacheFlutterVersion class

Cache Version model

Mixed in types
Annotations
  • @MappableClass()

Constructors

CacheFlutterVersion(FlutterVersion version, {required String directory})
Constructor
factory
CacheFlutterVersion.raw(String name, {required String directory, required String? releaseFromChannel, required VersionType type})
const

Properties

binPath String
Get version bin path
no setter
copyWith CacheFlutterVersionCopyWith<CacheFlutterVersion, CacheFlutterVersion, CacheFlutterVersion>
no setterinherited
dartBinPath String
Returns dart exec file for cache version
no setter
dartExec String
Returns dart exec file for cache version
no setter
dartSdkVersion String?
no setter
directory String
Directory of the cache version
final
flutterExec String
Returns flutter exec file for cache version
no setter
flutterSdkVersion String?
Gets Flutter SDK version from CacheVersion sync
no setter
hashCode int
The hash code for this object.
no setterinherited
hasOldBinPath bool
Has old dart path structure
no setter
isChannel bool
no setterinherited
isCommit bool
no setterinherited
isCustom bool
no setterinherited
isMaster bool
no setterinherited
isNotSetup bool
Verifies that cacheVersion has been setup
no setter
isRelease bool
no setterinherited
isSetup bool
Returns bool if version is setup
no setter
name String
Represents the underlying string value of the Flutter version.
finalinherited
printFriendlyName String
Provides a human readable version identifier for UI presentation.
no setterinherited
releaseFromChannel String?
Has a cannel which the version is part of
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type → VersionType
finalinherited
version String
no setterinherited

Methods

compareTo(FlutterVersion other) int
Compares CacheVersion with other
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run(String command, {bool echoOutput = false, bool? throwOnError}) Future<ProcessResult>
toJson() String
inherited
toMap() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

fromJson CacheFlutterVersion Function(String json)
final
fromMap CacheFlutterVersion Function(Map<String, dynamic> map)
final