FlintImage class

Inheritance

Constructors

FlintImage({required String src, String? alt, double? width, double? height, EdgeInsets? margin, EdgeInsets? padding, String? alignment, BoxBorder? border, BorderRadius? borderRadius, BoxShadow? shadow, ImageStyle style = const ImageStyle(), String? caption, bool lazyLoading = false, String? linkUrl})

Properties

alignment String?
final
alt String?
final
border BoxBorder?
final
borderRadius BorderRadius?
final
caption String?
final
hashCode int
The hash code for this object.
no setterinherited
height double?
final
lazyLoading bool
final
linkUrl String?
final
margin EdgeInsets?
final
padding EdgeInsets?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadow BoxShadow?
final
src String
final
style ImageStyle
final
width double?
final

Methods

buildTemplate() FlintWidget
Build the widget template - MUST be implemented by subclasses
override
copyWith({String? src, String? alt, double? width, double? height, EdgeInsets? margin, EdgeInsets? padding, String? alignment, BoxBorder? border, BorderRadius? borderRadius, BoxShadow? shadow, ImageStyle? style, String? caption, bool? lazyLoading, String? linkUrl}) FlintImage
Creates a copy with updated properties
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toHtml() String
Render to HTML (for emails, web)
override
toJson() Map<String, dynamic>
Render to intermediate JSON (for APIs, mobile apps, etc.)
override
toString() String
A string representation of this object.
inherited
toText() String
Render to plain text (fallback, CLI, etc.)
override

Operators

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