Method.returnsVoid constructor

Method.returnsVoid([
  1. void updates(
    1. MethodBuilder
    )?
])

Implementation

factory Method.returnsVoid([void Function(MethodBuilder)? updates]) =>
    Method((b) {
      if (updates != null) {
        updates(b);
      }
      b.returns = _$void;
    });