LicensePlate function

Future LicensePlate (
  1. String Reg,
  2. String Username,
  3. String Password
)

Implementation

Future<dynamic> LicensePlate(String Reg, String Username, String Password) async {
  String basicAuth = 'Basic ' + convert.base64Encode(convert.utf8.encode('$Username:$Password'));
  String url = 'https://www.regcheck.org.uk/api/json.aspx/CheckArgentina/$Reg';
  var response = await http.get(url,
      headers: <String, String>{'authorization': basicAuth});
  return convert.jsonDecode(response.body);
}