areEqual method Null safety

bool areEqual(
  1. dynamic value1,
  2. dynamic value2
)

Checks if two values are equal. The operation can be performed over values of any type.

  • value1 the first value to compare
  • value2 the second value to compare Returns true if values are equal and false otherwise