FailedResultMapper<TR> typedef Null safety

FailedResultMapper<TR> = TR Function(FailedResult result)

Mapper fucntion for result state has error

Implementation

typedef TR FailedResultMapper<TR>(FailedResult result);