insert method
Implementation
Future<DbResult> insert(Map<String, Object?> data) async {
_ensureNotConsumed();
if (data.isEmpty) throw ArgumentError('data cannot be empty');
final cols = data.keys.toList();
final colList = cols.map(_quoteId).join(', ');
final placeholders = cols.map((_) => '?').join(', ');
final sql = 'INSERT INTO ${_quoteId(_table)} ($colList) VALUES ($placeholders)';
final raw = await AppAmbitSdkFlutterPlatform.instance
.dbExecute(sql, cols.map((c) => data[c]).toList());
return DbResult.fromMap(raw);
}