Skip to content

Commit

Permalink
New lints fixes in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
rydmike committed Nov 27, 2024
1 parent 79a5ac3 commit cb1504e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
8 changes: 4 additions & 4 deletions example/lib/shared/services/theme_service_hive.dart
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ class ThemeServiceHive implements ThemeService {
/// Loads a setting from the Theme service, using a key to access it from
/// the Hive storage box.
///
/// If type <T> is not an atomic Dart type, there must be a
/// Hive type adapter that converts <T> into one.
/// If type `T` is not an atomic Dart type, there must be a
/// Hive type adapter that converts `T` into one.
@override
Future<T> load<T>(String key, T defaultValue) async {
try {
Expand Down Expand Up @@ -147,8 +147,8 @@ class ThemeServiceHive implements ThemeService {
/// Save a setting to the Theme service with the Hive storage box,
/// using key, as key for the value.
///
/// If type <T> is not an atomic Dart type, there must be a
/// Hive type adapter that converts <T> into one.
/// If type `T` is not an atomic Dart type, there must be a
/// Hive type adapter that converts `T` into one.
@override
Future<void> save<T>(String key, T value) async {
try {
Expand Down
32 changes: 16 additions & 16 deletions example/lib/shared/services/theme_service_hive_adapters.dart
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class FlexAppBarStyleAdapter extends TypeAdapter<FlexAppBarStyle> {

/// A Hive data type adapter for enum [FlexTabBarStyle], nullable.
///
/// Handles storing <null> value as -1 and returns anything out of enum
/// Handles storing `null` value as -1 and returns anything out of enum
/// index range as null value.
class FlexTabBarStyleAdapter extends TypeAdapter<FlexTabBarStyle?> {
@override
Expand Down Expand Up @@ -151,7 +151,7 @@ class FlexSystemNavBarStyleAdapter extends TypeAdapter<FlexSystemNavBarStyle> {

/// A Hive data type adapter for enum [SchemeColor], nullable.
///
/// Handles storing <null> value as -1 and returns anything out of enum
/// Handles storing `null` value as -1 and returns anything out of enum
/// index range as null value.
class FlexSchemeColorAdapter extends TypeAdapter<SchemeColor?> {
@override
Expand Down Expand Up @@ -211,7 +211,7 @@ class NavigationRailLabelTypeAdapter

/// A Hive data type adapter for enum [FlexSliderIndicatorType], nullable.
///
/// Handles storing <null> value as -1 and returns anything out of enum
/// Handles storing `null` value as -1 and returns anything out of enum
/// index range as null value.
class FlexSliderIndicatorTypeAdapter
extends TypeAdapter<FlexSliderIndicatorType?> {
Expand All @@ -236,7 +236,7 @@ class FlexSliderIndicatorTypeAdapter

/// A Hive data type adapter for enum [ShowValueIndicator], nullable.
///
/// Handles storing <null> value as -1 and returns anything out of enum
/// Handles storing `null` value as -1 and returns anything out of enum
/// index range as null value.
class ShowValueIndicatorAdapter extends TypeAdapter<ShowValueIndicator?> {
@override
Expand Down Expand Up @@ -264,7 +264,7 @@ class ShowValueIndicatorAdapter extends TypeAdapter<ShowValueIndicator?> {

/// A Hive data type adapter for enum [TabBarIndicatorSize], nullable.
///
/// Handles storing <null> value as -1 and returns anything out of enum
/// Handles storing `null` value as -1 and returns anything out of enum
/// index range as null value.
class TabBarIndicatorSizeAdapter extends TypeAdapter<TabBarIndicatorSize?> {
@override
Expand All @@ -288,7 +288,7 @@ class TabBarIndicatorSizeAdapter extends TypeAdapter<TabBarIndicatorSize?> {

/// A Hive data type adapter for enum [AdaptiveResponse], nullable.
///
/// Handles storing <null> value as -1 and returns anything out of enum
/// Handles storing `null` value as -1 and returns anything out of enum
/// index range as null value.
class AdaptiveThemeAdapter extends TypeAdapter<AdaptiveResponse?> {
@override
Expand All @@ -312,7 +312,7 @@ class AdaptiveThemeAdapter extends TypeAdapter<AdaptiveResponse?> {

/// A Hive data type adapter for enum [FlexPaletteType], nullable.
///
/// Handles storing <null> value as -1 and returns anything out of enum
/// Handles storing `null` value as -1 and returns anything out of enum
/// index range as null value.
class FlexPaletteTypeAdapter extends TypeAdapter<FlexPaletteType?> {
@override
Expand All @@ -336,7 +336,7 @@ class FlexPaletteTypeAdapter extends TypeAdapter<FlexPaletteType?> {

/// A Hive data type adapter for enum [VisualDensityEnum], nullable.
///
/// Handles storing <null> value as -1 and returns anything out of enum
/// Handles storing `null` value as -1 and returns anything out of enum
/// index range as null value.
class VisualDensityEnumAdapter extends TypeAdapter<VisualDensityEnum?> {
@override
Expand All @@ -360,7 +360,7 @@ class VisualDensityEnumAdapter extends TypeAdapter<VisualDensityEnum?> {

/// A Hive data type adapter for enum [SplashTypeEnum], nullable.
///
/// Handles storing <null> value as -1 and returns anything out of enum
/// Handles storing `null` value as -1 and returns anything out of enum
/// index range as null value.
class SplashTypeEnumAdapter extends TypeAdapter<SplashTypeEnum?> {
@override
Expand All @@ -384,7 +384,7 @@ class SplashTypeEnumAdapter extends TypeAdapter<SplashTypeEnum?> {

/// A Hive data type adapter for enum [TabAlignment], nullable.
///
/// Handles storing <null> value as -1 and returns anything out of enum
/// Handles storing `null` value as -1 and returns anything out of enum
/// index range as null value.
class TabAlignmentAdapter extends TypeAdapter<TabAlignment?> {
@override
Expand All @@ -408,7 +408,7 @@ class TabAlignmentAdapter extends TypeAdapter<TabAlignment?> {

/// A Hive data type adapter for enum [FlexFixedColorStyle], nullable.
///
/// Handles storing <null> value as -1 and returns anything out of enum
/// Handles storing `null` value as -1 and returns anything out of enum
/// index range as null value.
class FlexFixedColorStyleAdapter extends TypeAdapter<FlexFixedColorStyle?> {
@override
Expand All @@ -432,7 +432,7 @@ class FlexFixedColorStyleAdapter extends TypeAdapter<FlexFixedColorStyle?> {

/// A Hive data type adapter for enum [ListTileStyle], nullable.
///
/// Handles storing <null> value as -1 and returns anything out of enum
/// Handles storing `null` value as -1 and returns anything out of enum
/// index range as null value.
class ListTileStyleAdapter extends TypeAdapter<ListTileStyle?> {
@override
Expand All @@ -456,7 +456,7 @@ class ListTileStyleAdapter extends TypeAdapter<ListTileStyle?> {

/// A Hive data type adapter for enum [ListTileTitleAlignment], nullable.
///
/// Handles storing <null> value as -1 and returns anything out of enum
/// Handles storing `null` value as -1 and returns anything out of enum
/// index range as null value.
class ListTileTitleAlignmentAdapter
extends TypeAdapter<ListTileTitleAlignment?> {
Expand All @@ -481,7 +481,7 @@ class ListTileTitleAlignmentAdapter

/// A Hive data type adapter for enum [ListTileControlAffinity], nullable.
///
/// Handles storing <null> value as -1 and returns anything out of enum
/// Handles storing `null` value as -1 and returns anything out of enum
/// index range as null value.
class ListTileControlAffinityAdapter
extends TypeAdapter<ListTileControlAffinity?> {
Expand All @@ -506,7 +506,7 @@ class ListTileControlAffinityAdapter

/// A Hive data type adapter for enum [MaterialTapTargetSize], nullable.
///
/// Handles storing <null> value as -1 and returns anything out of enum
/// Handles storing `null` value as -1 and returns anything out of enum
/// index range as null value.
class MaterialTapTargetSizeAdapter extends TypeAdapter<MaterialTapTargetSize?> {
@override
Expand All @@ -530,7 +530,7 @@ class MaterialTapTargetSizeAdapter extends TypeAdapter<MaterialTapTargetSize?> {

/// A Hive data type adapter for enum [FlexScaffoldBaseColor], nullable.
///
/// Handles storing <null> value as -1 and returns anything out of enum
/// Handles storing `null` value as -1 and returns anything out of enum
/// index range as null value.
class FlexScaffoldBaseColorAdapter extends TypeAdapter<FlexScaffoldBaseColor?> {
@override
Expand Down

0 comments on commit cb1504e

Please sign in to comment.