ResultMapper<TR> typedef Null safety

ResultMapper<TR> = TR Function()

Mapper function for general result state

Implementation

typedef TR ResultMapper<TR>();