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