isPlainObject function

bool isPlainObject(
  1. dynamic obj
)

Checks if the value is a plain object

Implementation

bool isPlainObject(dynamic obj) {
  if (obj == null) return false;
  return obj is Map<String, dynamic>;
}