PushReq class

Constructors

PushReq({String? branch, List<PushFile> files = const [], String? message, String? name})
Returns a new PushReq instance.

Properties

branch ↔ String?
Branch to advance; empty means "main". A fresh branch that is the repo's first also becomes HEAD.
getter/setter pair
files ↔ List<PushFile>
Files are added to or overwritten on the branch tip — files already there and not listed SURVIVE. At least one, at most 5000, 32 MiB each.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
message ↔ String?
Message is the commit message; empty gets a generated one.
getter/setter pair
name ↔ String?
Name is the repo to push into, from the :name path segment. It is CREATED on first push if it does not exist.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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

Constants

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