Skip to content

igloodev/utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Useful utility function & widgets

Features

There are number of Utils functions which you can Use.

- SizeConstant Widget for empty height & width space
- Parsing class for model parsing
- Utils method
    - getMaskedString

Usage

for more info see example

Util.getMaskedString(string: "abcdefghijklmno", maskedLength: 5)  => *****fghijklmno
Util.getMaskedString(string: "abcdefghijklmno", maskAt: MaskAt.end, maskedLength: 5), => abcdefghij*****
Util.getMaskedString(string: "abcdefghijklmno", maskAt: MaskAt.middle, maskedLength: 5), => abcde*****klmno

SizeConstant.getHeightSpace(height: 10) // return empty widget having width 0px && height 10px
SizeConstant.getWidthSpace(width: 10) // return empty widget having width 10px && height 0px