CometChatBaseOptions class

CometChatBaseOptions is a model class which contains a set of properties that is be used by CometChatDetailsOption, CometChatGroupMemberOption thus forming a common base class for both


CometChatBaseOptions(
  id: 'option_id',
  title: 'Option title',
  icon: 'https://example.com/icon.png',
  packageName: 'example.package',
  titleStyle: TextStyle(fontSize: 16, fontWeight: FontWeight.bold),
  backgroundColor: Colors.blue,
  iconTint: Colors.white,
);

Constructors

CometChatBaseOptions({required String id, String? title, String? icon, String? packageName, TextStyle? titleStyle, Color? backgroundColor, Color? iconTint, Widget? iconWidget})

Properties

backgroundColor ↔ Color?
backgroundColor background color for option
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
icon ↔ String?
to pass icon url
getter/setter pair
iconTint ↔ Color?
iconTint tint color for icon
getter/setter pair
iconWidget ↔ Widget?
iconWidget widget for icon
getter/setter pair
id ↔ String
unique id foe any option
getter/setter pair
packageName ↔ String?
to pass package name for the used icon
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
title ↔ String?
title passes title to option
getter/setter pair
titleStyle ↔ TextStyle?
titleStyle styling property for title
getter/setter pair

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