createFunc static method

String createFunc({
  1. required String returns,
  2. required String name,
  3. String args = '',
  4. required String code,
  5. bool private = true,
  6. bool isGenerated = true,
})

Implementation

static String createFunc({
  required String returns,
  required String name,
  String args = '',
  required String code,
  bool private = true,
  bool isGenerated = true,
}) {
  return '$returns ${getSymbols(private, isGenerated)}$name($args) {$code}';
}