primitive<T> static method
Takes the pair of Getter and Setter for a primitive and puts them in
a Tuple2
. Convenience function if you don't want to rely on the tuple
package directly.
Implementation
static Tuple2<Getter<dynamic>, Setter<dynamic>> primitive<T>(
Getter<T?> getter,
Setter<T?> setter,
) =>
Tuple2(() => getter(), (val) => setter(val as T?));