FastAppSettingsDocument class

The app settings document.

Inheritance
  • Object
  • TModel
  • TEntity
  • TDocument
  • FastAppSettingsDocument

Constructors

FastAppSettingsDocument.new({String? languageCode, String? countryCode, String? theme, String? secondaryCurrencyCode, bool? use24HourFormat = kFastAppSettingsuse24HourFormat, String? primaryCurrencyCode, bool? saveEntry})
Creates an instance of FastAppSettingsDocument.
const
FastAppSettingsDocument.fromJson(Map<String, dynamic> json)
Creates an instance of FastAppSettingsDocument from a JSON map.
factory

Properties

countryCode String?
The country code of the application. Format: iso3166 For example: US, FR, DE, ...
final
hashCode int
The hash code for this object.
no setterinherited
languageCode String?
The language code of the application. Format: iso3166 For example: en, fr, de, ...
final
primaryCurrencyCode String
The user's preferred currency.
final
props List<Object?>
Overrides the props getter from the TDocument class.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
saveEntry bool
Whether to save user entries.
final
secondaryCurrencyCode String?
The user's secondary currency.
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
theme String?
The theme of the application.
final
use24HourFormat bool
Whether to always use 24 hour format.
final
version int
The version of the document.
no setterinherited

Methods

assignValue<T>(T? value, {T? defaultValue, bool loose = true}) → T?
inherited
clone() FastAppSettingsDocument
Creates a new instance of FastAppSettingsDocument with the same property values.
override
copyWith({String? languageCode, ValueGetter<String?>? countryCode, String? theme, String? primaryCurrencyCode, String? secondaryCurrencyCode, bool? saveEntry, bool? use24HourFormat}) FastAppSettingsDocument
Creates a new FastAppSettingsDocument object with updated property values.
override
copyWithDefaults() → TModel
inherited
merge(covariant FastAppSettingsDocument model) FastAppSettingsDocument
Merges another FastAppSettingsDocument object into the current instance.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the FastAppSettingsDocument object to a JSON map.
override
toString() String
Returns a string representation of this object.
inherited

Operators

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