statementKindOf function

String? statementKindOf(
  1. Map<String, dynamic> content
)

The statement kind in content, or null when absent or not one of statementKinds.

Implementation

String? statementKindOf(Map<String, dynamic> content) {
  final value = content[statementKindKey];
  return value is String && statementKinds.contains(value) ? value : null;
}