toParamCaseMethod top-level property

MethodDefinition<String, String> toParamCaseMethod
final

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',
    ),
  ],
);