common.dart 377 B

123456789101112131415161718
  1. import 'package:flutter/material.dart';
  2. class commonChangeNotifier extends ChangeNotifier {
  3. String _mainURL="";
  4. String get mainURL => _mainURL;
  5. set(BuildContext context,String url) async {
  6. _mainURL = url;
  7. notifyListeners();
  8. }
  9. get(BuildContext context) async {
  10. notifyListeners();
  11. }
  12. remove(BuildContext context) async {
  13. notifyListeners();
  14. }
  15. }