flutter_faker_indonesia 0.0.8 copy "flutter_faker_indonesia: ^0.0.8" to clipboard
flutter_faker_indonesia: ^0.0.8 copied to clipboard

outdated

Faker is a Dart library that generates fake data. It can be used to generate realistic data for testing, development, and prototyping. Faker supports a wide variety of data types, including strings, n [...]

Usage #

Here is an example of how you could add a section to your README that shows how to use your package:

Import the dependencies in pubspec.yaml

dependencies:
  flutter_faker_indonesia: ^latest_version

Use an easy implementation like this

import 'package:faker/faker.dart';

main() {
  var faker = new Faker();

  faker.personal.namaLengkap(length: 2);
  /// Vania Mariska
}

Documentation #

Personal #

Functions in this class:

  • namaLengkap()
    • int length = 2 (optional) The number of words
  • namaAwal()
  • namaAkhir()
  • gelarDepan()
    • bool singkatan = true (optional) Ex: singkatan = true -> "H.", but if singkatan = false -> "Haji"
    • bool is_boy (optional) Ex: is_boy = true -> "H.", but if is_boy = false -> "Hj."
  • gelarBelakang()
    • bool singkatan = true (optional) Ex: singkatan = true -> "S.H.", but if singkatan = false -> "Sarjana Hukum"
    • int length = 1 (optional) The number of words
  • jenisKelamin()
    • bool child = false (optional) Ex: child = true -> "Laki-laki", but if child = false -> "Pria"
    faker.personal.namaLengkap();
    /// Zara Azalea

    faker.personal.namaAwal();
    /// Bayu

    faker.personal.namaAkhir();
    /// Fajariyanto

    faker.personal.gelarDepan();
    /// Dr.

    faker.personal.gelarBelakang();
    /// A.Md.Kom.

Pekerjaan #

Functions in this class:

  • namaPerusahaan()
    • int mode = "lengkap" (optional)
      • "lengkap" Ex: PT Venturo Pro Indonesia, PT Suparma Tbk.
      • "badan usaha" Ex: CV, Fa, PD, PN, PO, PT, UD, Koperasi
      • "belakang" Ex: Corp., Inc., Ltd., Tbk., (Persero), (Persero) Tbk.
  • jabatan()
    faker.pekerjaan.namaPerusahaan()
    /// PT Venturo Pro Indonesia

    faker.pekerjaan.jabatan()
    /// Quality Assurance

Contribution #

We welcome contributions from the community to improve and expand this package. If you would like to contribute, please follow the steps below:

Check the issues for open tasks or features that you can work on. If there are no relevant issues, you can create a new issue to discuss your proposed contribution.

Fork this repository and create a new branch for your contribution work.

Make the changes you want to implement in your branch.

Once you are done, submit a pull request to the main repository explaining the changes you made and the reasons behind them.

Our development team will review your contribution and provide feedback as soon as possible. If necessary, we may request changes or additional adjustments before merging your pull request.

Please make sure to read CONTRIBUTING.md for further guidelines on how to contribute to this project.

License #

Distributed under the MIT License. See LICENSE for more information.

Features and bugs #

Please file feature requests and bugs at the issue tracker.

2
likes
0
points
16
downloads

Publisher

unverified uploader

Weekly Downloads

Faker is a Dart library that generates fake data. It can be used to generate realistic data for testing, development, and prototyping. Faker supports a wide variety of data types, including strings, numbers, dates, and objects. It also supports a variety of generators, such as name generators, address generators, and phone number generators. Faker is easy to use. Simply import the package and call the generate() method. Faker is fast. It can generate large amounts of data quickly.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_faker_indonesia