routils 0.1.0+0 copy "routils: ^0.1.0+0" to clipboard
routils: ^0.1.0+0 copied to clipboard

A new Flutter plugin for common utils, such as String & Date & Log & Regex etc. And We will continue to update.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'package:routils/routils.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  String _platformVersion = 'Unknown';

  @override
  void initState() {
    super.initState();

    ///user like this:
    RoStringUtils.isEmpty('asdasdsad');
    ///or like this:
    roStringIsEmpty('textasdasd');


  }

  @override
  Widget build(BuildContext context) {
    List list = ['asdasd', 'asdasdasd'];
    Map map = {'asd':123};
    Set set = Set();
    Iterable it = Iterable.empty();
    String string = 'sadasd';

    print(roLength(list));
    print(roLength(map));
    print(roLength(set));
    print(roLength(it));
    print(roLength(string));

    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: Text('Running on: $_platformVersion\n'),
        ),
      ),
    );
  }
}
0
likes
30
pub points
0%
popularity

Publisher

unverified uploader

A new Flutter plugin for common utils, such as String & Date & Log & Regex etc. And We will continue to update.

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

convert, crypto, flutter

More

Packages that depend on routils