isValidMetadata function

bool isValidMetadata(
  1. Latin1Data? metadata
)

Takes in a Latin1Data and returns whether or not it is a valid data/metadata value Returns a bool about whether or not the argument is valid

Implementation

bool isValidMetadata(Latin1Data? metadata) {
  if (metadata == null) {
    return true;
  }
  if (metadata.show.length > 127) {
    return false;
  }
  return true;
}