forked from lxm_flutter/FlutterUnit
16 lines
263 B
Dart
16 lines
263 B
Dart
import 'package:flutter/cupertino.dart';
|
|
|
|
class PointData extends ChangeNotifier {
|
|
final List<double> values = [];
|
|
|
|
void push(double value) {
|
|
values.add(value);
|
|
notifyListeners();
|
|
}
|
|
|
|
|
|
void clear() {
|
|
values.clear();
|
|
notifyListeners();
|
|
}
|
|
} |