toParamCaseMethod top-level property
Implementation
final toParamCaseMethod = MethodDefinition<String, String>(
name: 'toParamCase',
parameters: [],
method: (context) => Future.value(ReCase(context.owner).paramCase),
description: 'Returns a string converted to param-case',
examples: [
ExpressionBlockExample(
(delimiter) =>
'${delimiter.start}"Hello World".toParamCase()${delimiter.end}',
shouldRender: 'hello-world',
),
TestFileExample.fromProjectFilePath(
'test/src/parser/expression/method/string/to_param_case_test.dart',
),
],
);