cpd_2022_energy/lib/models/MyInputModel.dart

12 lines
239 B
Dart
Raw Normal View History

2022-11-07 18:52:21 +01:00
import 'package:flutter/cupertino.dart';
class MyInputModel extends ChangeNotifier {
String _text = "Hallo Welt";
String get currentText => _text;
void changeText(String newText) {
_text = newText;
notifyListeners();
}
}