configuration method

void configuration({
  1. String urlImageAsset = 'assets/images',
  2. String urlAPK = 'https://www.example.com/apk/apk.apk',
  3. String nameLogoAsset = 'logo_transparent.png',
  4. String baseAPIURL = 'https://www.example.com',
  5. String baseImageURL = 'https://www.example.com/images',
  6. String tokenFirebase = 'exampletoken',
  7. String defaultImageNetwork = 'https://homepages.cae.wisc.edu/~ece533/images/airplane.png',
  8. String fullPathImageAsset = '',
  9. Map<String, String>? headersAPI,
})

Implementation

void configuration({
  /// asset/images
  String urlImageAsset = 'assets/images',

  /// http://www.example/apk/apk.apk
  String urlAPK = 'https://www.example.com/apk/apk.apk',

  /// logo.png
  String nameLogoAsset = 'logo_transparent.png',

  /// http://www.example.com
  String baseAPIURL = 'https://www.example.com',

  /// http://www.example.com/images
  String baseImageURL = 'https://www.example.com/images',

  /// exampletoken
  String tokenFirebase = 'exampletoken',

  /// https://homepages.cae.wisc.edu/~ece533/images/airplane.png
  String defaultImageNetwork = 'https://homepages.cae.wisc.edu/~ece533/images/airplane.png',

  /// Full Url Asset Image
  String fullPathImageAsset = '',

  /// {'Content-Type': 'application/x-www-form-urlencoded'}
  Map<String, String>? headersAPI,
}) {
  this.urlAPK = urlAPK;
  this.defaultImageNetwork = defaultImageNetwork;
  this.urlImageAsset = urlImageAsset;
  this.nameLogoAsset = nameLogoAsset;
  this.baseAPIURL = baseAPIURL;
  this.baseImageURL = baseImageURL;
  this.tokenFirebase = tokenFirebase;
  this.headersAPI = headersAPI;
  this.fullPathImageAsset = '$urlImageAsset/$nameLogoAsset';
}