ifFailure abstract method

void ifFailure(
  1. void error(
    1. E
    )
)

Calls the given function if this Result contains an error.

Implementation

void ifFailure(void Function(E) error);