mirror of
https://github.com/immich-app/immich.git
synced 2026-07-04 03:45:59 -07:00
8132e8a38c
* feat: share with quality options * merge main * clean up * refactor * translation * translation * add settings and default behavior * fix: lint * cleanup * merge main --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
19 lines
534 B
Dart
19 lines
534 B
Dart
import 'package:immich_mobile/constants/enums.dart';
|
|
|
|
class ShareConfig {
|
|
final ShareAssetType fileType;
|
|
|
|
const ShareConfig({this.fileType = ShareAssetType.original});
|
|
|
|
ShareConfig copyWith({ShareAssetType? fileType}) => ShareConfig(fileType: fileType ?? this.fileType);
|
|
|
|
@override
|
|
bool operator ==(Object other) => identical(this, other) || (other is ShareConfig && other.fileType == fileType);
|
|
|
|
@override
|
|
int get hashCode => fileType.hashCode;
|
|
|
|
@override
|
|
String toString() => 'ShareConfig(fileType: $fileType)';
|
|
}
|