CSC

A Flutter package to get information about each country.

Features

  • Viewing countries' names with states and cities details.

Getting started

To use this package, add CSC as a dependency in your pubspec.yaml file.

Usage

import 'package:csc/csc.dart';

Future<List<Country>> CSC.countries

- By Name:
Future<bool> CSC.countryExistsByName(String name)
Future<Country> CSC.countryByName(String name)
Future<bool> CSC.countryHasStatesByName(String countryName)
Future<List<State>> CSC.countryStatesByName(String countryName)
Future<bool> CSC.stateExistsByName(String countryName, String stateName)
Future<State> CSC.stateByName(String countryName, String stateName)
Future<bool> CSC.stateHasCitiesByName(String countryName, String stateName)
Future<List<City>> CSC.stateCitiesByName(String countryName, String stateName)
Future<bool> CSC.cityExistsByName(String countryName, String stateName, String cityName)
Future<City> CSC.cityByName(String countryName, String stateName, String cityName)

- By Code:
Future<bool> CSC.countryExistsByCode(String code)
Future<Country> CSC.countryByCode(String code)
Future<bool> CSC.countryHasStatesByCode(String countryCode)
Future<List<State>> CSC.countryStatesByCode(String countryCode)
Future<bool> CSC.stateExistsByCode(String countryCode, String stateCode)
Future<State> CSC.stateByCode(String countryCode, String stateCode)
Future<bool> CSC.stateHasCitiesByCode(String countryCode, String stateCode)
Future<List<City>> CSC.stateCitiesByCode(String countryCode, String stateCode)
Future<bool> CSC.cityExistsByCode(String countryCode, String stateCode, String cityName)
Future<City> CSC.cityByCode(String countryCode, String stateCode, String cityName)

Libraries

csc