error method Null safety

void error()

Implementation

void error() => _stateMachine.error();