CompletionStep function

  1. @Deprecated('Create Step from Step.dart')
Step CompletionStep({
  1. String? id,
  2. required String title,
  3. required String text,
  4. String? buttonText,
})

It is uppercase to support previous implementions of the CompletionnStep

Implementation

@Deprecated('Create Step from Step.dart')
// ignore: non_constant_identifier_names
Step CompletionStep({
  String? id,
  required String title,
  required String text,
  String? buttonText,
}) =>
    Step(
      id: id,
      content: [
        TextContent(
          text: title,
          fontSize: 22,
        ),
        TextContent(
          text: text,
        ),
        const LottieContent(
          asset: 'assets/fancy_checkmark.json',
        ),
      ],
      buttonText: buttonText,
    );