show<T> static method

Future<T?> show<T>(
  1. BuildContext context, {
  2. void onChanged(
    1. DeviceDetails
    )?,
  3. String? camera,
})

Displays a CameraSwitchView wrapped in a ModalPopup.

Implementation

static Future<T?> show<T>(
  BuildContext context, {
  void Function(DeviceDetails)? onChanged,
  String? camera,
}) {
  return ModalPopup.show(
    context: context,
    child: CameraSwitchView(onChanged: onChanged, camera: camera),
  );
}