Widget constructor
const
Widget({})
Creates a Widget.
Implementation
const factory Widget({
/// The HTML source of the widget.
@JsonKey(name: 'html') required String html,
/// Identifier of the widget, if it is shared.
@JsonKey(name: 'id') String? id,
/// Width in logical pixels, if fixed.
@JsonKey(name: 'width') int? width,
/// Height in logical pixels, if fixed.
@JsonKey(name: 'height') int? height,
/// Data available wherever the widget is shown.
@JsonKey(name: 'public_data') String? publicData,
/// Data specific to the message.
@JsonKey(name: 'chat_data') String? chatData,
}) = _Widget;