BrandItem class

Data model representing a brand logo or partner tile in BrandBlock.

Constructors

BrandItem({String? name, String? imageUrl, ImageProvider<Object>? image, String? assetPath, Widget? child, double? width, Color? backgroundColor, Border? border, BorderRadius? borderRadius, VoidCallback? onTap})
Creates a BrandItem.
const

Properties

assetPath → String?
Optional local asset path.
final
backgroundColor → Color?
Background color of the brand tile container (defaults to AlterSemanticTokens.bgSubtle).
final
border → Border?
Optional border for the brand tile container.
final
borderRadius → BorderRadius?
Optional corner radius (defaults to 16px).
final
child → Widget?
Optional custom widget override for the brand tile content.
final
hashCode → int
The hash code for this object.
no setterinherited
image → ImageProvider<Object>?
Optional image provider.
final
imageUrl → String?
Optional network image URL.
final
name → String?
Optional display title or fallback name for the brand.
final
onTap → VoidCallback?
Optional tap callback.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
width → double?
Optional fixed width. If null, width hugs content or aspect ratio at fixed 64px height.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited