PhotoVideoSwap constructor

const PhotoVideoSwap({
  1. Key? key,
  2. required bool isPhoto,
  3. required ValueChanged<bool> onChanged,
})

Creates the switch.

Implementation

const PhotoVideoSwap({
  super.key,
  required this.isPhoto,
  required this.onChanged,
});