MethodInfo constructor

MethodInfo({
  1. required String name,
  2. required bool callsNotifyListeners,
  3. required String bodySnippet,
  4. bool isAsync = false,
  5. String returnType = 'void',
  6. bool isGetter = false,
  7. List<ParamInfo> parameters = const [],
})

Creates a MethodInfo.

Implementation

MethodInfo({
  required this.name,
  required this.callsNotifyListeners,
  required this.bodySnippet,
  this.isAsync = false,
  this.returnType = 'void',
  this.isGetter = false,
  this.parameters = const [],
});