AccessibilitySettingsViewModel class final

A view model that manages the accessibility settings of the application.

Constructors

AccessibilitySettingsViewModel.fromAccessibilitySettingsCollection({required AccessibilitySettingsCollection accessibilitySettingsCollection})
A view model that manages the accessibility settings of the application.
factory

Properties

colorSettings ValueNotifier<ColorSettings>
The current state of the color settings of the application.
no setter
effectsAllowed ValueNotifier<bool>
The current state of the effects allowed of the application.
no setter
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textSettings ValueNotifier<TextSettings>
The current state of the text accessibility settings of the application.
no setter
themeMode ValueNotifier<ThemeMode>
The current state of the theme mode of the application.
no setter

Methods

applyThemeProfile(ThemeProfileLevel themeProfileLevel) → void
Apply a theme profile to the application.
copyWith({ThemeMode? themeMode, bool? effectsAllowed, TextSettings? textSettings, ColorSettings? colorSettings}) AccessibilitySettingsViewModel
Creates a copy of this view model with the given fields replaced.
dispose() → void
Disposes the resources used by the provider.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
restoreDefaultSettings() → void
Restore the default settings of the application.
toString() String
A string representation of this object.
override
updateColorProfileLevel({String? newColorProfileLevelName}) → void
Moves to the next color profile or the newColorProfileLevelName if it is provided.
updateFontWeightSetting({required bool newSetting}) → void
Update the font weight in the application and in the shared preferences.
updateLetterSpacingSetting(double newSetting) → void
Update the letter spacing in the application and in the shared preferences.
updateLineHeightSetting(double newSetting) → void
Update the line height in the application and in the shared preferences.
updatePagesBackgroundColorSettings(Color color) → void
Update the pages background color in the application and in the shared preferences.
updateScaleFactorSetting(double newSetting) → void
Update the scale factor in the application and in the shared preferences.
updateTextAlignSetting(String newTextAlignMode) → void
Update the text alignment in the application and in the shared preferences.
updateTextColorSettings(Color color) → void
Update the text color in the application and in the shared preferences.
updateWordSpacingSetting(double newSetting) → void
Update the word spacing in the application and in the shared preferences.

Operators

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