LinkService constructor
LinkService({
- required String accessToken,
- LinkEnvironment environment = LinkEnvironment.sandbox,
Implementation
LinkService({
required this.accessToken,
this.environment = LinkEnvironment.sandbox,
}) {
_host = environment == LinkEnvironment.production
? 'api.link.money'
: 'api.link-sandbox.money';
}