FlutlyVariable constructor
FlutlyVariable(
- String key,
- dynamic value, {
- Map<
String, FlutlyVariable> ? children, - 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);
}
}
}