setBrushForState method

void setBrushForState(
  1. Brush brush,
  2. BarcodePickState state
)

Implementation

void setBrushForState(Brush brush, BarcodePickState state) {
  _brushesForState.firstWhere((element) => element.pickState == state).brush = brush;
}