duration property
String
get
duration
The duration column.
In android, the value of this column maybe null.
In iOS/macOS, the value of this column is 0 when the media is image.
Implementation
String get duration {
if (isAndroid || isOhos) {
return 'duration';
} else if (isDarwin) {
return 'duration';
} else {
throw UnsupportedError('Unsupported platform with duration');
}
}