entityFields method

List<FieldReflection<O, dynamic>> entityFields([
  1. O? obj
])

Implementation

List<FieldReflection<O, dynamic>> entityFields([O? obj]) {
  if (obj == null) {
    if (object != null) {
      return _entityFieldsObjectImpl();
    } else {
      return _entityFieldsNoObjectImpl();
    }
  } else if (identical(obj, object)) {
    return _entityFieldsObjectImpl();
  }

  return _entityFieldsNoObjectImpl().map((f) => f.withObject(obj)).toList();
}