HealthWarningTexts class

Texts of HealthStatus.warnings. Replace them to localise your diagnostics screen. {reason} / {name} are substituted where present.

Constructors

HealthWarningTexts({String locationOff = 'Location services (GPS) are off', String permissionNotAlways = 'Location permission is not "Allow all the time"', String notificationDenied = 'Notification permission denied', String batteryOptimised = 'App is still subject to battery optimisation', String powerSave = 'Power-saving mode is on', String startBlocked = 'Start blocked: {reason}', String restartBlocked = 'Automatic restart blocked: {reason}', String exactAlarms = 'Exact alarms not allowed and battery optimisation is on: restart after a swipe-away may fail', String wifiOff = 'Wi-Fi is off: indoor accuracy drops. Turn Wi-Fi on (it does not need to be connected) or enable "Wi-Fi scanning"', String reducedAccuracy = 'Only approximate location (reduced accuracy)', String noFix = 'No fix for > 60 s', String isolateStopped = 'Background Dart isolate is not running', String iconMissing = 'Notification icon "{name}" was not found: the default icon is used'})
Creates the texts; every argument replaces one default.
const

Properties

batteryOptimised → String
The app is still subject to battery optimisation.
final
exactAlarms → String
Exact alarms are not allowed (restart after a swipe-away may fail).
final
hashCode → int
The hash code for this object.
no setterinherited
iconMissing → String
The configured notification icon was not found; {name} is substituted.
final
isolateStopped → String
The background Dart isolate is not running.
final
locationOff → String
Location services are switched off.
final
noFix → String
No fix for more than 60 seconds.
final
notificationDenied → String
Notification permission is denied.
final
permissionNotAlways → String
Permission is not "Allow all the time".
final
powerSave → String
The OS power-saving mode is on.
final
reducedAccuracy → String
Only approximate location was granted (iOS).
final
restartBlocked → String
Automatic restart is blocked; {reason} is substituted.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
startBlocked → String
Start is blocked; {reason} is substituted.
final
wifiOff → String
Wi-Fi is off, so indoor accuracy drops.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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