mobx example react
Example: mobx example class
import 'package:mobx/mobx.dart';
part 'defect_store.g.dart';
class DefectStore = DefectMobx with _$DefectStore;
abstract class DefectMobx with Store {
dynamic completeDefects = [];
dynamic incompleteDefects = [];
void updateCompleteDefects(value) {
completeDefects = value;
}
void updateIncompleteDefects(value) {
incompleteDefects = value;
}
}