AssetEntity constructor

AssetEntity({
  1. required String id,
  2. required int typeInt,
  3. required int width,
  4. required int height,
  5. int duration = 0,
  6. int orientation = 0,
  7. bool isFavorite = false,
  8. String? title,
  9. int? createDateSecond,
  10. int? modifiedDateSecond,
  11. String? relativePath,
  12. @Deprecated('Use `latLng` instead. ' 'This feature was deprecated after v3.8.0') double? latitude,
  13. @Deprecated('Use `latLng` instead. ' 'This feature was deprecated after v3.8.0') double? longitude,
  14. LatLng? latLng,
  15. String? mimeType,
  16. int subtype = 0,
})

Implementation

AssetEntity({
  required this.id,
  required this.typeInt,
  required this.width,
  required this.height,
  this.duration = 0,
  this.orientation = 0,
  this.isFavorite = false,
  this.title,
  this.createDateSecond,
  this.modifiedDateSecond,
  this.relativePath,
  @Deprecated(
    'Use `latLng` instead. '
    'This feature was deprecated after v3.8.0',
  )
  double? latitude,
  @Deprecated(
    'Use `latLng` instead. '
    'This feature was deprecated after v3.8.0',
  )
  double? longitude,
  LatLng? latLng,
  this.mimeType,
  this.subtype = 0,
}) : _latLng = latLng ??
          LatLng.fromValues(latitude: latitude, longitude: longitude);