StreamUserAvatarThemeData class

Defines default property values for StreamUserAvatar widgets.

Mixed-in types
Annotations

Constructors

StreamUserAvatarThemeData({BoxConstraints constraints = const BoxConstraints.tightFor(height: 40, width: 40), BorderRadius borderRadius = const BorderRadius.all(Radius.circular(20)), TextStyle initialsTextStyle = const TextStyle(fontSize: 16, fontWeight: FontWeight.bold, color: Colors.white), Color selectionColor = const Color(0xff005FFF), double selectionThickness = 4, Color? initialsBackground})
Creates a new instance of StreamUserAvatarThemeData.
const

Properties

borderRadius BorderRadius
BorderRadius of the image.
final
constraints BoxConstraints
Sizing constraints of the avatar.
final
hashCode int
The hash code for this object.
no setteroverride
initialsBackground Color?
Background color for the initials.
final
initialsTextStyle TextStyle
TextStyle for the initials text.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectionColor Color
Color of the selection.
final
selectionThickness double
Selection thickness around the avatar.
final

Methods

copyWith({BoxConstraints? constraints, BorderRadius? borderRadius, TextStyle? initialsTextStyle, Color? initialsBackground, Color? selectionColor, double? selectionThickness}) StreamUserAvatarThemeData
Creates a copy of this object with the given fields replaced with the new values.
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
lerp(StreamUserAvatarThemeData other, double t) StreamUserAvatarThemeData
Linearly interpolate between two StreamUserAvatarThemeData themes.
merge(StreamUserAvatarThemeData? other) StreamUserAvatarThemeData
Merges one StreamUserAvatarThemeData with the another.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override