runInsert abstract method

Future<int> runInsert(
  1. String statement,
  2. List<Object?> args
)

Prepares and executes the statement with the variables bound to args. The statement will be an INSERT statement.

If the statement completes successfully, the insert id of the row can be returned. If that information is not available, null can be returned. The method should throw if the statement can't be executed.

Implementation

Future<int> runInsert(String statement, List<Object?> args);