webEmptyToNull function

String? webEmptyToNull(
  1. String? value
)

Treats MediaPipe's empty optional strings as absent values.

Implementation

String? webEmptyToNull(String? value) => value == null || value.isEmpty ? null : value;