setForeignKeyConstraintsEnabled method

Future<void> setForeignKeyConstraintsEnabled (bool enable)

Sets whether foreign key constraints are enabled for the database.

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

Implementation

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