flummkv 1.0.26

  • Readme
  • Changelog
  • Example
  • Installing
  • 71

fmmkv #

Plugin that allow Flutter to read value from persistent storage or save value to persistent storage based on MMKV framework

Getting Started #

Open terminal, cd to your project directory, run pod repo update to make CocoaPods aware of the latest available MMKV versions

Quick Tutorial #

  MMKV mmkv = MMKV();
  // MMKV mmkv = MMKV(id: 'other', crypt: 'crypt');
  print('count: ${await mmkv.count()}');
  print('allKeys: ${await mmkv.allKeys()}');
  print('clear: ${await mmkv.clear()}');
  print('contains \'Int\': ${await mmkv.contains('Int')}');
  print('removeByKey \'Int\': ${await mmkv.removeByKey('Int')}');
  print('totalSize: ${await mmkv.totalSize()}');
  // Generic methods
  print('setInt: ${await mmkv1.set('Int', 9223372036854775807)}');
  print('getInt: ${await mmkv1.get<int>('Int')}');
  print('setInt: ${await mmkv.setInt('Int', 9223372036854775807)}');
  print('setInt: ${await mmkv.getInt('Int')}');
  print('setBool: ${await mmkv.setBool('Bool', true)}');
  print('getBool: ${await mmkv.getBool('Bool')}');
  print('setDouble: ${await mmkv.setDouble('Double', double.maxFinite)}');
  print('getDouble: ${await mmkv.getDouble('Double')}');
  print('setString: ${await mmkv.setString('String', 'Hello, world!')}');
  print('getString: ${await mmkv.getString('String')}');

  print('setUint8List: ${await mmkv.setUint8List('Uint8List', Uint8List.fromList([1, 2, 3],),)}');
  print('getUint8List: ${await mmkv.getUint8List('Uint8List')}');

1.0.26 #

  • Add: const constructor

1.0.25 #

  • Update: MMKV ios
  • Add: encode and decode method

1.0.24 #

  • Fix: defaultValue is inoperative

1.0.23 #

  • Rename domain

1.0.22 #

  • Optimize

1.0.21 #

  • Remove <T> from set method

1.0.20 #

  • Add defaultValue param for get* method

1.0.19 #

  • Fixed: Remove id crypt params from Mmkv.get() and Mmkv.set()

1.0.18 #

  • Add generic methods

1.0.17 #

  • Implementing some functions of mmkv


flummkv_example #

Demonstrates how to use the flummkv plugin.

Getting Started #

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  flummkv: ^1.0.26

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:flummkv/flummkv.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Feb 25, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.5
  • Flutter: 1.12.13+hotfix.8

Maintenance suggestions

The package description is too short. (-1 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies