GitHubButton class final

A button that links to a GitHub repository and shows stars and forks.

Annotations
  • @client

Constructors

GitHubButton.new({required String repo, Key? key})
Create a new GitHubButton component that links to the specified GitHub repo and shows the amount of stars and forks it has.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
key → Key?
Controls how one component replaces another component in the tree.
finalinherited
repo String
The ID of the GitHub repository, in the form <organization or user name>/<repository name>.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createElement() → Element
Creates a StatefulElement to manage this component's location in the tree.
inherited
createState() → State<GitHubButton>
Creates the mutable state for this component at a given location in the tree.
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

Static Properties

styles List<StyleRule>
no setter