AirtableCrud class
A class that provides CRUD operations for Airtable.
This class includes methods to fetch, create, update, and delete records in an Airtable base. It also supports bulk creation of records.
Constructors
- AirtableCrud(String apiKey, String baseId)
-
Constructs an instance of AirtableCrud with the given
apiKey
andbaseId
.
Properties
Methods
-
createBulkRecords(
String tableName, List< Map< dataList) → Future<String, dynamic> >List< AirtableRecord> > -
Creates multiple records in bulk in the specified
tableName
. -
createRecord(
String tableName, Map< String, dynamic> data) → Future<AirtableRecord> -
Creates a new record in the specified
tableName
. -
deleteRecord(
String tableName, String id) → Future< void> -
Deletes a record from the specified
tableName
. -
fetchRecords(
String tableName, {bool paginate = true, String view = 'Grid view'}) → Future< List< AirtableRecord> > -
Fetches records from the specified
tableName
. -
fetchRecordsWithFilter(
String tableName, String filterByFormula, {bool paginate = true, String view = 'Grid view'}) → Future< List< AirtableRecord> > -
Fetches records from the specified
tableName
using a filter formula. -
fetchRecordsWithQueryBuilder(
String tableName, AirtableQueryCrud queryBuilder, {bool paginate = true, String view = 'Grid view'}) → Future< List< AirtableRecord> > - Fetches records using the query builder.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateRecord(
String tableName, AirtableRecord record) → Future< void> -
Updates an existing record in the specified
tableName
.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited