Select Git revision
data.dart 453 B
import 'package:flutter/foundation.dart';
class Data extends ChangeNotifier {
bool _searchingImage = false;
String _image = '';
bool get searchingImage => _searchingImage;
set searchingImage(bool value) {
_searchingImage = value;
notifyListeners();
}
String get image => _image;
set updateImage(String value) {
_image = value;
notifyListeners();
}
void resetGame() {
_image = '';
notifyListeners();
}
}