isEqual method

dynamic isEqual(
  1. InputModel other
)

Implementation

isEqual(InputModel other) {
  bool scriptOk = script == null && other.script == null;
  if (script != null && other.script != null) {
    final hex1 = hex.encode(Uint8List.view(script!.buffer));
    final hex2 = hex.encode(Uint8List.view(other.script!.buffer));
    scriptOk = hex1 == hex2;
  }
  return i == other.i &&
      scriptOk &&
      value == other.value &&
      address == other.address;
}