updateData method

  1. @override
Future<String> updateData(
  1. String query
)
override

Writes data to the database using the specified SQL query.

Implementation

@override
Future<String> updateData(String query) async {
  try {
    final String? result = await methodChannel
        .invokeMethod<String>('updateData', {'query': query});
    return result ?? '';
  } catch (e) {
    rethrow;
  }
}