AppletParser<T> class

Base class for SPH applet parsers (Dart-only, no Flutter).

Implemented types
Implementers
Available extensions

Constructors

AppletParser(AppletContext ctx, AppletMeta appletMeta, {required Future<bool> isConnected()})

Properties

appletMeta → AppletMeta
final
cacheAccountId → int
no setteroverride
cacheService → CacheService
no setteroverride
ctx → AppletContext
final
hashCode → int
The hash code for this object.
no setterinherited
homeCacheRequest → CacheRequest<T>?
no setter
isConnected → Future<bool> Function()
final
isEmpty ↔ bool
getter/setter pair
latestResponse → FetcherResponse<T>?
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stream → AppletResponseStream<T>
no setteroverride

Methods

addResponse(FetcherResponse<T> data) → void
dispose() → void
fetch({bool forceRefresh = false}) → Future<FetcherResponse<T>>

Available on AppletParser<T>, provided by the AppletParserFetch extension

fetchCachedData({CacheReadPolicy? policy}) → Future<void>
fetchData({bool forceRefresh = false, bool secondTry = false}) → Future<void>
override
getHome() → Future<T>
loadCachedHome({CacheReadPolicy? policy}) → Future<MaybeCacheResult<T>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
presentCachedHome(T value) → T
startAutoRefresh() → void
Starts periodic refresh. Safe to call repeatedly.
override
stopAutoRefresh() → void
Stops periodic refresh while the applet is off-screen.
override
timerCallback(Timer timer) → void
toString() → String
A string representation of this object.
inherited
typeFromJson(String json) → T

Operators

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