config method
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;
}