tryDecode static method

PsdAdjustment? tryDecode(
  1. Uint8List data, {
  2. required String key,
})

Attempts to decode an adjustment and returns null for malformed data.

Implementation

static PsdAdjustment? tryDecode(Uint8List data, {required String key}) {
  try {
    return decode(data, key: key);
  } on Object {
    return null;
  }
}