re factor rog

This commit is contained in:
2024-04-01 09:26:56 +05:30
parent dd36ab8399
commit edbf52825b
54 changed files with 2597 additions and 435 deletions

View File

@ -0,0 +1,17 @@
import 'package:flutter_riverpod/flutter_riverpod.dart';
final errorReportingProvider = Provider<ErrorReporter>((ref) {
return ErrorReporterImpl();
});
class ErrorReporter {
void reportError(Object error, StackTrace stackTrace) {}
}
class ErrorReporterImpl extends ErrorReporter {
@override
void reportError(Object error, StackTrace stackTrace) {
// Send error and stackTrace to the server
// Include app state if necessary
}
}