HttpManUpService class

Inheritance

Constructors

HttpManUpService.new(String url, {required Client http, String? os, PackageInfoProvider packageInfoProvider = const DefaultPackageInfoProvider(), ConfigStorage storage = const ConfigStorage(), ManUpDelegate? delegate})

Properties

closed bool
getter/setter pairinherited
configData PlatformData?
no setterinherited
delegate ManUpDelegate?
getter/setter pairinherited
fileStorage ConfigStorage
finalinherited
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
http → Client
final
os String?
finalinherited
packageInfoProvider PackageInfoProvider
finalinherited
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 pairinherited
url String
final

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
close() → void
override
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
inherited
getMetadata() Future<Metadata>
override
getPlatformData(String os, Metadata data) PlatformData?
inherited
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>
inherited
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:
inherited
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.
inherited

Operators

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