fromValue method Null safety

BLOCKS? fromValue(
  1. String value
)

Implementation

static BLOCKS? fromValue(String value) {
  return items.firstWhereOrNull((item) => item.value == value);
}