toMockDeclarationStrings method

String toMockDeclarationStrings(
  1. String className
)

Implementation

String toMockDeclarationStrings(String className) {
  final declaration = where((e) => e.name != null).map((e) => e.toMockDeclaration(className)).join(',\n').trim();
  final constructorDeclarations = toConstructorDeclarations();
  return '''

$className mock$className({
$constructorDeclarations,
}) => $className(
$declaration,
);
''';
}