setTransactionSuccessful method

Future<void> setTransactionSuccessful ()

Marks the current transaction as successful.

Do not do any more database work between calling this and calling endTransaction. Do as little non-database work as possible in that situation too. If any errors are encountered between this and endTransaction the transaction will still be committed.

See: https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase#setTransactionSuccessful()

Implementation

Future<void> setTransactionSuccessful() {
  final Map<String, dynamic> request = <String, dynamic>{'id': id};
  return _channel.invokeMethod('setTransactionSuccessful', request);
}