check method Null safety

void check(
  1. int value
)

Check if a returned value is an error.

Implementation

void check(int value) {
  if (value != 0) {
    throw SynthizerError.fromLib(synthizer);
  }
}