b012_sqlflite_easy library

Classes

DataAccess
High-level API for persisting Dart objects into a local SQLite database.

Enums

ColumnType
Sentinel values to put in toMap() when a field is null, so that the column type can still be inferred when the table is created.

Extensions

B012StringHelpers on String
String helpers used in the example app.

Properties

newKey → String
Returns a new random 32-character key ([0-9a-zA-Z]), generated with a cryptographically secure random source. Suitable as a text primary key.
no setter

Functions

boolean(dynamic intOrBool, {bool isInt = true}) → dynamic
Converts a SQLite boolean (stored as 0/1) back to a Dart bool.
dateTime(String? dateString) → DateTime?
Parses a date stored by b012_data (or any ISO-8601 text). Returns null for null, an empty string or an unparsable text.
mapToUse(Map<String, dynamic> objectMap, {bool forDB = true}) → Map<String, dynamic>
Converts an entity map into a map suitable for SQLite.
range(int lenOrStart, [int? end]) → Iterable<int>
Python-like range:

Typedefs

B012ErrorHandler = void Function(Object error, StackTrace stack)
Receives every error that a method turns into false, null or [] outside strict mode.