custom_io 1.0.6 copy "custom_io: ^1.0.6" to clipboard
custom_io: ^1.0.6 copied to clipboard

A Simple I/O Package for Code reusablity.

example/custom_io_example.dart

import 'package:custom_io/custom_io.dart';

void main() {
  print("Enter an integer:");
  int? intValue = CustIO.myInput(int);
  print("You entered integer: $intValue");

  print("\nEnter a double:");
  double? doubleValue = CustIO.myInput(double);
  print("You entered double: $doubleValue");

  print("\nEnter a boolean (true/false or 1/0):");
  bool? boolValue = CustIO.myInput(bool);
  print("You entered boolean: $boolValue");

  print("\nEnter a string:");
  String? stringValue = CustIO.myInput(String);
  print("You entered string: $stringValue");
}
1
likes
125
points
53
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Simple I/O Package for Code reusablity.

Repository (GitHub)
View/report issues

License

MIT (license)

More

Packages that depend on custom_io