mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-12-26 21:08:52 +00:00
22 lines
528 B
Dart
22 lines
528 B
Dart
|
import 'package:flutter/widgets.dart';
|
||
|
|
||
|
/// Account image settings
|
||
|
///
|
||
|
/// @author Pierre Hubert
|
||
|
|
||
|
enum AccountImageVisibilityLevels { EVERYONE, COMUNIC_USERS, FRIENDS_ONLY }
|
||
|
|
||
|
class AccountImageSettings {
|
||
|
final bool hasImage;
|
||
|
final String imageURL;
|
||
|
final AccountImageVisibilityLevels visibility;
|
||
|
|
||
|
const AccountImageSettings({
|
||
|
@required this.hasImage,
|
||
|
@required this.imageURL,
|
||
|
@required this.visibility,
|
||
|
}) : assert(hasImage != null),
|
||
|
assert(imageURL != null),
|
||
|
assert(visibility != null);
|
||
|
}
|