StarterKit class

Constructors

StarterKit({String? category, String? demo, String? description, List<String> features = const [], String? framework, String? org, String? preview, num? rating, String? slug, String? source_, int? tier, String? title, String? useCase, List<Variant> variants = const []})
Returns a new StarterKit instance.

Properties

category ↔ String?
groups the kit in the gallery browser ("Portfolio", "SaaS")
getter/setter pair
demo ↔ String?
live demo (
getter/setter pair
description ↔ String?
the browse-card blurb
getter/setter pair
features ↔ List<String>
the highlights the card lists, at most 32
getter/setter pair
framework ↔ String?
the stack the kit is built on ("Next.js 14.2 + TS")
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
org ↔ String?
owner of a PRIVATE template; empty in the public catalog
getter/setter pair
preview ↔ String?
the still image the browse card renders
getter/setter pair
rating ↔ num?
Rating is public-gallery curation, on the same terms as Tier: catalog-only, never accepted from a request, absent on a customer's own kit.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
slug ↔ String?
the kit's identity — lowercase alphanumeric with dashes, max 40
getter/setter pair
source_ ↔ String?
the repository the kit is forked from
getter/setter pair
tier ↔ int?
Tier is public-gallery curation, carried verbatim from the embedded catalog. No request can set it — neither write body has the field and neither builds a kit carrying one — so it is absent on every customer-published kit.
getter/setter pair
title ↔ String?
display name
getter/setter pair
useCase ↔ String?
what the kit is for, in a phrase
getter/setter pair
variants ↔ List<Variant>
the shapes this template ships in
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → StarterKit?
Returns a new StarterKit instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<StarterKit>
mapFromJson(dynamic json) → Map<String, StarterKit>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<StarterKit>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.