siberia

Last updated:

0 purchases

siberia Image
siberia Images
Add to Cart

Description:

siberia

Useful extensions functions to dart language.
Getting started #
https://pub.dev/packages/siberia
Usage #
imports
import 'package:siberia/siberia.dart';
copied to clipboard
String Extentions #

orEmpty:

final String? value;
print(value.orEmpty);
copied to clipboard

toInt:

final String value = "10";
final int intValue = value.toInt();
copied to clipboard

toIntOrNull:

final String value = "X10";
final int? intNullableValue = value.tryToInt();
copied to clipboard

toDouble:

final String value = "10";
final double doubleValue = value.toDouble();
copied to clipboard

toDoubleOrNull:

final String value = "X10";
final double? doubleNullableValue = value.tryToDouble();
copied to clipboard
Number extentions #

orZero:

int? exampleInt;
double? exampleDouble;

print(exampleInt.orZero);
print(exampleDouble.orZero);
copied to clipboard
Contributors #



Made with contributors-img.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.