dpi_validator 1.0.0 copy "dpi_validator: ^1.0.0" to clipboard
dpi_validator: ^1.0.0 copied to clipboard

A DPI validator. This validate and return values of department and municipality by DPI.

DPI Validator #

A package for check the DPI.

This plugin works fine in any platform (Android, iOS, MacOS, Linux and Windows).

Features #

Feature Android iOS MacOS Windows Linux Web
validateDPI
findDepartmentByDPI
findMunicipalityByDPI

Getting started #

This plugin works only in Guatemala City Only you need to install and use that.

Usage #

From any place of your code, only call function.

import 'package:dpi_validator/dpi_validator.dart';

// Will return an object.
// DPIResponse(
//  message: "OK",
//  isValid: true,
//  municipality: "Municipio de Guatemala",
//  department: "GUATEMALA")
validateDPI("your dpi");

// Will return a string. For example: "Municipio de Guatemala"
findMunicipalityByDPI("your dpi");

// Will return a string. For example: "GUATEMALA", "JUTIAPA"
findDepartmentByDPI("your dpi");

Additional information #

This plugins works offline.

3
likes
130
pub points
21%
popularity

Publisher

verified publisherbrandonmanzo.dev

A DPI validator. This validate and return values of department and municipality by DPI.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on dpi_validator