FittorCode constructor

const FittorCode({
  1. Key? key,
  2. required String code,
  3. String? title,
  4. String language = 'dart',
  5. bool? launch,
  6. String? url,
  7. VoidCallback? onLaunch,
})

Implementation

const FittorCode({
  super.key,
  required this.code,
  this.title,
  this.language = 'dart',
  this.launch,
  this.url,
  this.onLaunch,
}) : assert(
        launch != true || onLaunch != null,
        'When launch is true, onLaunch callback must be provided',
      );