AppCredentials class

Credentials for accessing the unsplash api as a registered app.

You need to register as a developer and create an unsplash app to get credentials.

Annotations
  • @immutable

Constructors

AppCredentials({required String accessKey, String? secretKey})
Creates AppCredentials from the given arguments.
const
AppCredentials.fromJson(Map<String, dynamic> json)
Deserializes AppCredentials from json.
factory

Properties

accessKey String
The access key of the app these AppCredentials belong to.
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secretKey String?
The secret key of the app these AppCredentials belong to.
final

Methods

copyWith({String? accessKey, String? secretKey}) AppCredentials
Creates a copy of this instance, replacing non null fields.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this instance to json.
toString() String
A string representation of this object.
override

Operators

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