encode method
Implementation
Object encode() {
  return <Object?>[
    extraRotation?.index,
    captureWidth,
    captureHeight,
    streamType,
  ];
}Object encode() {
  return <Object?>[
    extraRotation?.index,
    captureWidth,
    captureHeight,
    streamType,
  ];
}