config method

Catalog config({
  1. required List<String> args,
  2. String? path,
  3. void onBackPressed()?,
  4. Future<Uint8List> process(
    1. Uint8List data
    )?,
})

Implementation

Catalog config({
  required List<String> args,
  String? path,
  void Function()? onBackPressed,
  Future<Uint8List> Function(Uint8List data)? process,
}) {
  if (onBackPressed != null) {
    this.onBackPressed = onBackPressed;
  }
  if (path?.isNotEmpty == true) {
    this.path = path!;
  }
  if (process != null) {
    this.process = process;
  }
  return this;
}