generate method

  1. @override
Widget generate(
  1. Context context
)
override

Implementation

@override
Widget generate(Context context) {
  final jsonText = json
      .encode(show.map((text) => text.toMap()).toList())
      .replaceAll('\\[repl]\\', '\\');

  return Command(times != null
      ? 'title $entity times ${times!.$1} ${times!.$2} ${times!.$3}'
      : 'title $entity ${_type.name} $jsonText');
}