Skip to main content

operator == method

[bool] operator ==(

  1. [[Object] other]

)

override

Overrides the equality operator to compare instances of the MainScreenArgs class.

Checks whether the other object is of the same type and compares its properties: If all properties match, returns true; otherwise, returns false.

params:

  • other: The object to compare against this MainScreenArgs instance.

returns:

  • bool: Returns true if the properties of both instances match; otherwise, false.

Implementation

@override
bool operator ==(Object other) =>
identical(this, other) ||
other is MainScreenArgs &&
other.fromSignUp == fromSignUp &&
other.mainScreenIndex == mainScreenIndex &&
other.toggleDemoMode == toggleDemoMode;
  1. talawa
  2. mainscreen_navigation_args
  3. MainScreenArgs
  4. operator == method
MainScreenArgs class