12 lines
239 B
Dart
12 lines
239 B
Dart
|
import 'package:flutter/cupertino.dart';
|
||
|
|
||
|
class MyInputModel extends ChangeNotifier {
|
||
|
String _text = "Hallo Welt";
|
||
|
|
||
|
String get currentText => _text;
|
||
|
|
||
|
void changeText(String newText) {
|
||
|
_text = newText;
|
||
|
notifyListeners();
|
||
|
}
|
||
|
}
|