ManUpService class abstract

Mixed-in types
Implementers

Constructors

ManUpService.new({PackageInfoProvider packageInfoProvider = const DefaultPackageInfoProvider(), String? os, ConfigStorage storage = const ConfigStorage(), ManUpDelegate? delegate})

Properties

closed bool
getter/setter pair
configData PlatformData?
no setter
delegate ManUpDelegate?
getter/setter pair
fileStorage ConfigStorage
final
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
os String?
final
packageInfoProvider PackageInfoProvider
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status ManUpStatus?
The most recent status - use addListener to get notified of changes
getter/setter pair

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
close() → void
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
inherited
getMessage({required ManUpStatus forStatus}) String
getMetadata() Future<Metadata>
getPlatformData(String os, Metadata data) PlatformData?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
readManUpFile() Future<Metadata>
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
setting<T>({required String key, required T orElse, String? os}) → T
Retrieve an arbitrary setting key from your ManUp config json. Must have run validate() first for this to work. For example:
toString() String
A string representation of this object.
inherited
validate([Metadata? metadata]) Future<ManUpStatus>
Fetch the ManUp json file (after which settings can be retrieved using setting) and return the calculated status.

Operators

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