d_method 0.2.6

SDKflutter
Platformandroidioswindowslinuxmacosweb

Package for some shortcut method, utility function and etc

D'Method is package to get value from several compute, to faster build app.

Usage

Convert Byte

double size = DMethod.byteToMb(10123456);
DMethod.printTitle(
    'byteToMb',
    '${size.toStringAsFixed(2)} Mb',
);

Check Response http

String url = 'https://jsonplaceholder.typicode.com/posts';
final response = await http.get(Uri.parse(url));
DMethod.printResponse(response);
DMethod.logResponse(response);
dmethod_printtitle

Log Console

DMethod.printTitle('http://flutterdlux/youtube','oooooo');
DMethod.printTitle('http://flutterdlux/youtube','oooooo',titleCode: 105);
DMethod.printTitle('http://flutterdlux/youtube','oooooo',titleCode: 105,bodyCode: 106);
DMethod.log('from 10123456 byte');
DMethod.logTitle('http://flutterdlux/youtube','oooooo',titleCode: 105,bodyCode: 106);
dmethod_printtitle

Color Code
dmethod_printtitle_color_code dmethod_printtitle_color_code

Tutorial :

Support me for more feature & packages Donate

Check my app : Visit

Check My Tutorial & Course : Watch