BannerModel class

Model to Banner of caroulse

Constructors

BannerModel({required String imagePath, required String id, BoxFit boxFit = BoxFit.cover})
BannerModel(imagePath: '/assets/banner1.png', id: "1")

Properties

boxFit BoxFit
The boxFit How the image should be inscribed into the Container. Default value is BoxFit.cover
final
hashCode int
The hash code for this object.
no setterinherited
id String
The id to indentify the banner.
final
imagePath String
The imagePath is the path to the image. That can be assert Path or Network Path
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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