validate method

void validate()

Implementation

void validate() {
  MiniProgramNfc.recordTypes(allowedRecordTypes);
  if (maxReadMs < 1000 ||
      maxReadMs > MiniProgramNfc.maxReadMs ||
      maxRecords < 1 ||
      maxRecords > MiniProgramNfc.maxRecords ||
      maxMessageBytes < 1 ||
      maxMessageBytes > MiniProgramNfc.maxMessageBytes) {
    throw const FormatException('Invalid accepted NFC limits.');
  }
}