create static method

MethodProperty? create(
  1. Method? method
)

Creates a new property with the specified value

Implementation

static MethodProperty? create(Method? method) {
  if (method == null) {
    return null;
  }
  return MethodProperty('$propertyName:${method.name}');
}