editFrameWithData method

EditorResult editFrameWithData({
  1. required int start,
  2. required String frameID,
  3. required int frameSize,
  4. bool compression = false,
  5. required MetadataEditableWrapper data,
})

Implementation

EditorResult editFrameWithData(
    {required int start,
    required String frameID,
    required int frameSize,
    bool compression = false,
    required MetadataEditableWrapper data}) {
  if (data is MetadataV2p3Wrapper) {
    return _editFrameWithV2p3Data(
        start, frameID, frameSize, compression, data);
  } else if (data is MetadataV2p4Wrapper) {
    return _editFrameWithV2p4Data(
        start, frameID, frameSize, compression, data);
  }
  return EditorResult.noEdit(
      frameID: frameID, start: start, frameSize: frameSize);
}