decodeInt method

  1. @override
int decodeInt()
override

Decodes the data as an integer value.

Implementation

@override
int decodeInt() {
  try {
    return (_value as num).toInt();
  } on TypeError {
    throw CodableException.unexpectedType(expected: 'int', actual: '${_value.runtimeType}', data: _value);
  }
}