Answers for "mobx"

0

mobx

import 'package:mobx/mobx.dart';
Posted by: Guest on June-15-2021
0

mobx

dependencies:
  mobx: ^2.0.1
Posted by: Guest on June-15-2021
0

mobx example class

import 'package:mobx/mobx.dart';

part 'defect_store.g.dart';

class DefectStore = DefectMobx with _$DefectStore;

abstract class DefectMobx with Store {
  @observable
  dynamic completeDefects = [];
  @observable
  dynamic incompleteDefects = [];

  @action
  void updateCompleteDefects(value) {
    completeDefects = value;
  }

  @action
  void updateIncompleteDefects(value) {
    incompleteDefects = value;
  }
}
Posted by: Guest on September-23-2020

Browse Popular Code Answers by Language