hashCode property

  1. @override
int 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 ^ volume.hashCode;
  hash = hash ^ fadeDuration.hashCode;
  hash = hash ^ (notificationTitle.hashCode);
  hash = hash ^ (notificationBody.hashCode);
  hash = hash ^ enableNotificationOnKill.hashCode;
  hash = hash & 0x3fffffff;

  return hash;
}