isCommit function

bool isCommit(
  1. Map<String, dynamic>? object
)

Returns true if object is Commit, otherwise false.

Implementation

bool isCommit(final Map<String, dynamic>? object) {
  if (object == null) return false;
  if (object['t'] == null) return false;

  return object['t'] == '#commit';
}