rawUpdate method
Execute raw SQL update
Implementation
@override
Future<int> rawUpdate(String sql, [List<dynamic>? arguments]) async {
final result = await methodChannel.invokeMethod('rawUpdate', {
'sql': sql,
'arguments': arguments,
});
// Handle both int and long types that might come from Android
if (result is int) {
return result;
} else if (result is num) {
return result.toInt();
}
return 0;
}