Created
May 18, 2019 05:22
-
-
Save ponnamkarthik/166ba36573da067008daa6f26faaa191 to your computer and use it in GitHub Desktop.
app_state.dart
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
class AppState with ChangeNotifier { | |
AppState(); | |
String _displayText = ""; | |
void setDisplayText(String text) { | |
_displayText = text; | |
notifyListeners(); | |
} | |
String get getDisplayText => _displayText; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment