You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
388 B
20 lines
388 B
import 'package:flutter/material.dart';
|
|
import 'package:mdsflutter/Mds.dart';
|
|
|
|
class DeviceModel extends ChangeNotifier {
|
|
String? _serial;
|
|
String? _info;
|
|
|
|
// ------------ //
|
|
|
|
String? get info => _info;
|
|
|
|
// ------------ //
|
|
|
|
void getInfo() {
|
|
MdsAsync.get(Mds.createRequestUri(_serial!, "/Info"), "{}")
|
|
.then((value) => {_info = value});
|
|
notifyListeners();
|
|
}
|
|
}
|