ReplaceKitIn class

Constructors

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

Properties

category ↔ String?
Category groups the kit in the gallery browser.
getter/setter pair
demo ↔ String?
Demo is the deployed site itself, when there is one.
getter/setter pair
description ↔ String?
Description is the browse-card blurb, max 4096 characters.
getter/setter pair
features ↔ List<String>
Features are the highlights the card lists, at most 32.
getter/setter pair
framework ↔ String?
Framework is the stack the kit is built on ("Next.js 14").
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
preview ↔ String?
Preview is the still image the browse card renders, max 4096 characters.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
slug ↔ String?
Slug is the kit to replace, from the path.
getter/setter pair
source_ ↔ String?
Source is the repository the kit is forked from, max 4096 characters.
getter/setter pair
title ↔ String?
Title is the display name. Required, max 200 characters.
getter/setter pair
useCase ↔ String?
UseCase is what the kit is for, in a phrase.
getter/setter pair
variants ↔ List<Variant>
Variants are the shapes this kit ships in, at most 32; the fork picks one.
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) → ReplaceKitIn?
Returns a new ReplaceKitIn instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<ReplaceKitIn>
mapFromJson(dynamic json) → Map<String, ReplaceKitIn>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<ReplaceKitIn>>

Constants

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