LocalUserSettings class
- Annotations
-
- @freezed
Constructors
- LocalUserSettings({required int id, required int personId, String? email, required bool showNsfw, required String theme, @JsonKey(fromJson: sortTypeFromIndex, toJson: sortTypeToIndex) required SortType defaultSortType, @JsonKey(fromJson: postListingTypeFromIndex, toJson: postListingTypeToIndex) required PostListingType defaultListingType, required String lang, required bool showAvatars, required bool showScores, required bool sendNotificationsToEmail, required bool showReadPosts, required bool showBotAccounts, required bool showNewPostNotifs, required bool emailVerified, required bool acceptedApplication, required String instanceHost})
-
constfactory
-
LocalUserSettings.fromJson(Map<
String, dynamic> json) -
factory
Properties
- acceptedApplication → bool
-
no setterinherited
-
copyWith
→ $LocalUserSettingsCopyWith<
LocalUserSettings> -
no setterinherited
- defaultListingType → PostListingType
-
no setterinherited
- defaultSortType → SortType
-
no setterinherited
- email → String?
-
no setterinherited
- emailVerified → bool
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
no setterinherited
- instanceHost → String
-
no setterinherited
- lang → String
-
no setterinherited
- personId → int
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sendNotificationsToEmail → bool
-
no setterinherited
- showAvatars → bool
-
no setterinherited
- showBotAccounts → bool
-
no setterinherited
- showNewPostNotifs → bool
-
no setterinherited
- showNsfw → bool
-
no setterinherited
- showReadPosts → bool
-
no setterinherited
- showScores → bool
-
no setterinherited
- theme → String
-
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited