getSizeElement method
It retrieves the size for flexing the element inside the Expanded
Implementation
int getSizeElement(){
String currentSize = mappingSizes[this.deviceType]!;
int xs = this.xs ?? 12;
int sm = this.sm ?? 12;
int md = this.md ?? 6;
int lg = this.lg ?? 4;
int xl = this.xl ?? 3;
int flexSize = (currentSize == "xs" ? xs : (currentSize == "sm" ? sm : (currentSize == "md" ? md : (currentSize == "lg" ? lg : xl))));
return flexSize;
}