modelValue<M> method

M modelValue<M>(
  1. String tag
)

Implementation

M modelValue<M>(String tag) {
  final k = modelKey<M>(tag: tag);
  return (value[k] as M?) ??
      (initials[k] as M?) ??
      (throw """
Must set init value from `FrUnion` for type[$M] !

example:
```dart
FrUnionViewModel({
CounterM(0),
UserM('Mike', 18),
})
```
      """);
}