isSameType function

bool isSameType (dynamic obj1, 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;
}