isSameType function

bool isSameType(
  1. dynamic obj1,
  2. dynamic obj2
)

Check if Object1 obj1 is same as Object2 obj2 it might return false in many cases

Implementation

bool isSameType(obj1, obj2) {
  return obj1.runtimeType == obj2.runtimeType;
}