FlutlyVariable constructor

FlutlyVariable(
  1. String key,
  2. dynamic value, {
  3. Map<String, FlutlyVariable>? children,
  4. bool isLazy = true,
})

Implementation

FlutlyVariable(this.key, dynamic value,
    {Map<String, FlutlyVariable>? children, bool isLazy = true}) {
  _children = children ?? {};

  this.value = Rx<dynamic>(value);

  if (key != "") {
    if (isLazy) {
      Get.lazyPut(() => this, tag: key);
    }else{
      Get.put(this, tag: key);
    }
  }
}