shared_prefs_typed_annotations 0.5.2 copy "shared_prefs_typed_annotations: ^0.5.2" to clipboard
shared_prefs_typed_annotations: ^0.5.2 copied to clipboard

Annotations for generating type-safe SharedPreferences code (shared_prefs_typed)

shared_prefs_typed_annotations #

This package provides the annotations used by the shared_prefs_typed code generator.

Its sole purpose is to provide the @TypedPrefs annotation, which marks a class for code generation.

Usage #

You only need to use this package to annotate your preference schema. The main logic, installation, and usage patterns are found in the primary shared_prefs_typed package.

Example of a preference schema:

import 'package:shared_prefs_typed_annotations/shared_prefs_typed_annotations.dart';

@TypedPrefs()
abstract class _AppPreferences {
  static const int counter = 0;
  static const String? username = null;
}

For complete installation instructions, usage guides, and advanced features, please see the documentation for the main shared_prefs_typed package.

1
likes
160
points
79
downloads

Publisher

verified publisherphilippgerber.li

Weekly Downloads

Annotations for generating type-safe SharedPreferences code (shared_prefs_typed)

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on shared_prefs_typed_annotations