1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-23 05:19:22 +00:00
comunicmobile/lib/models/account_image_settings.dart

22 lines
528 B
Dart
Raw Normal View History

2020-04-16 17:16:44 +00:00
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);
}