isEqual method

  1. @override
bool isEqual(
  1. NDEFRecord other
)
override

Implementation

@override
bool isEqual(NDEFRecord other) {
  var o = other as SmartPosterRecord;
  return (tnf == other.tnf) &&
      ByteUtils.bytesEqual(type, other.type) &&
      (id == other.id) &&
      (titleRecords.length == o.titleRecords.length) &&
      (uriRecords.length == o.uriRecords.length) &&
      (actionRecords.length == o.actionRecords.length) &&
      (iconRecords.length == o.iconRecords.length) &&
      (sizeRecords.length == o.sizeRecords.length) &&
      (typeRecords.length == o.typeRecords.length) &&
      _isEqualRecords(titleRecords, o.titleRecords) &&
      _isEqualRecords(uriRecords, o.uriRecords) &&
      _isEqualRecords(actionRecords, o.actionRecords) &&
      _isEqualRecords(iconRecords, o.iconRecords) &&
      _isEqualRecords(sizeRecords, o.sizeRecords) &&
      _isEqualRecords(typeRecords, o.typeRecords);
}