Files
2026-05-15 19:09:37 +03:00

25 lines
438 B
Dart

import 'package:flutter/material.dart';
class MapProvider with ChangeNotifier {
bool _isInitialized = false;
String _error = '';
bool get isInitialized => _isInitialized;
String get error => _error;
void initialize() {
_isInitialized = true;
notifyListeners();
}
void handleError(String error) {
_error = error;
notifyListeners();
}
void clearError() {
_error = '';
notifyListeners();
}
}