ServerParamAnnotations.fromElement constructor

ServerParamAnnotations.fromElement(
  1. FormalParameterElement element
)

Implementation

factory ServerParamAnnotations.fromElement(FormalParameterElement element) {
  return ServerParamAnnotations._getter(({
    required List<OnMatch> onMatch,
    NonMatch? onNonMatch,
  }) {
    return getAnnotations(
      element: element,
      onMatch: onMatch,
      onNonMatch: onNonMatch,
    );
  });
}