import 'package:flutter/material.dart'; class Refresh with ChangeNotifier { bool _isRefresh = false; bool get isRefresh => _isRefresh; changeRefresh() { _isRefresh = !isRefresh; notifyListeners(); } init() { _isRefresh = false; } }