allMethods method

List<MethodReflection<O, dynamic>> allMethods([
  1. O? obj
])

Returns a List with all methods MethodReflection.

Implementation

List<MethodReflection<O, dynamic>> allMethods([O? obj]) {
  if (obj == null) {
    if (object != null) {
      return _allMethodsObjectImpl();
    } else {
      return _allMethodsNoObjectImpl();
    }
  } else if (identical(obj, object)) {
    return _allMethodsObjectImpl();
  }

  return _allMethodsNoObjectImpl().map((m) => m.withObject(obj)).toList();
}