simple_database 2.0.1 simple_database: ^2.0.1 copied to clipboard
A simple lightweight wrapper for the SharedPreferences Flutter package.
import '../lib/simple_database.dart';
void main() async {
SimpleDatabase names = SimpleDatabase(name: 'names');
await names.add('Bob');
await names.add('Doug');
//Get all of the strings in the database
for (var name in await names.getAllType<String>()) {
print(name);
}
}