getPublicMethodsFromClass function

Map<String, FunctionMirror> getPublicMethodsFromClass(
  1. ClassMirror classMirror
)

Get the list of public MethodMirror from classMirror

Implementation

Map<String, FunctionMirror> getPublicMethodsFromClass(ClassMirror classMirror) {
  var methods = <String, FunctionMirror>{};
  classMirror.methods?.forEach((key, method) {
    if (!key.startsWith('_')) methods[key] = method;
  });
  return methods;
}