message property

String get message

Implementation

String get message {
  switch (this) {
    case CameraError.permissionDenied:
      return 'Permission to use the camera was denied';
    case CameraError.setupFailed:
      return 'Failed to set up the camera';
    case CameraError.captureError:
      return 'Failed to capture image';
  }
}