hashCode property

  1. @override
int get hashCode
override

Returns a hash code for this AlarmSettings instance using Jenkins hash function.

Implementation

@override
int get hashCode {
  var hash = 0;

  hash = hash ^ id.hashCode;
  hash = hash ^ dateTime.hashCode;
  hash = hash ^ assetAudioPath.hashCode;
  hash = hash ^ loopAudio.hashCode;
  hash = hash ^ vibrate.hashCode;
  hash = hash ^ volumeMax.hashCode;
  hash = hash ^ fadeDuration.hashCode;
  hash = hash ^ (notificationTitle?.hashCode ?? 0);
  hash = hash ^ (notificationBody?.hashCode ?? 0);
  hash = hash ^ enableNotificationOnKill.hashCode;
  hash = hash ^ stopOnNotificationOpen.hashCode;
  hash = hash & 0x3fffffff;

  return hash;
}