canConvert method

bool canConvert(
  1. FileFormat from,
  2. FileFormat to
)

very naive checker to see if this file format can be converted between the two

Implementation

bool canConvert(FileFormat from, FileFormat to) {
  return _inputTypes.contains(from) && _outputTypes.contains(to);
}