elementSize property Null safety
Implementation
int get elementSize {
switch (type) {
case 'float':
case 'int':
return 4;
case 'short':
return 2;
case 'byte':
return 1;
default:
return 0;
}
}
int get elementSize {
switch (type) {
case 'float':
case 'int':
return 4;
case 'short':
return 2;
case 'byte':
return 1;
default:
return 0;
}
}