mediaType property

String mediaType

The media type column.

The value is number,

In android:

  • 1: image
  • 2: audio
  • 3: video

In iOS/macOS:

  • 1: image
  • 2: video
  • 3: audio

Implementation

String get mediaType {
  if (isAndroid) {
    return 'media_type';
  } else if (isDarwin) {
    return 'mediaType';
  } else {
    throw UnsupportedError('Unsupported platform with mediaType');
  }
}