AIOWidget constructor

const AIOWidget({
  1. @JsonKey(name: 'title', required: true) required String title,
  2. @JsonKey(name: 'description', required: true) required String description,
  3. @JsonKey(name: 'cards', required: true) required List<AIOCard> cards,
})

Implementation

const factory AIOWidget({
  /// The title of the widget
  @JsonKey(name: 'title', required: true) required String title,

  /// The description of the widget
  @JsonKey(name: 'description', required: true) required String description,

  /// The cards of the widget
  @JsonKey(name: 'cards', required: true) required List<AIOCard> cards,
}) = _AIOWidget;