operator == method
[bool] operator ==(
- [[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
: Returnstrue
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;
- talawa
- mainscreen_navigation_args
- MainScreenArgs
- operator == method