typeByName method
Implementation
BlockType? typeByName({
required String? name,
}) {
BlockType? _blockType;
for (final blockType in blockTypes) {
if (blockType.name == name) {
_blockType = blockType;
}
}
return _blockType;
}