logoAssetPath method
Asset path of this method's logo, for use with
SvgPicture.asset(path, package: 'peachpayments_flutter').
Pass onDark: true to get a variant suited to dark backgrounds where one
exists (currently only Apple Pay).
Implementation
String logoAssetPath({bool onDark = false}) {
if (onDark && this == PeachPaymentMethod.applePay) {
return 'assets/logos/apple_pay_white.svg';
}
return 'assets/logos/$key.svg';
}