APIPlatformCapability constructor
APIPlatformCapability({})
Implementation
APIPlatformCapability(
{required this.canReadFile,
this.int64 = false,
this.double64 = false,
this.int53 = false,
this.double53 = false,
this.int32 = false,
this.double32 = false,
int? maxSafeInteger,
int? minSafeInteger})
: maxSafeInteger = maxSafeInteger ??
(int64
? int64Max.toInt()
: (int53
? int53Max.toInt()
: (int32
? int32Max.toInt()
: throw StateError(
'maxSafeInteger error: Platform `int` not defined!')))),
minSafeInteger = minSafeInteger ??
(int64
? int64Min.toInt()
: (int53
? int53Min.toInt()
: (int32
? int32Min.toInt()
: throw StateError(
'minSafeInteger error: Platform `int` not defined!'))));