ConstantReaderExtensions extension
- on
-
- ConstantReader
Methods
-
peekBoolValue(
String field) → bool? -
Returns the value of the
field
as a bool ornull
if the field is not a bool. -
peekDoubleValue(
String field) → double? -
Returns the value of the
field
as a double ornull
if the field is not a double. -
peekIntValue(
String field) → int? -
Returns the value of the
field
as an int ornull
if the field is not an int. -
peekStringValue(
String field) → String? -
Returns the value of the
field
as a String ornull
if the field is not a String. -
readBoolValue(
String field) → bool -
Returns the value of the
field
as a bool or throws a FormatException if the field is not a bool. -
readDoubleValue(
String field) → double -
Returns the value of the
field
as a double or throws a FormatException if the field is not a double. -
readIntValue(
String field) → int -
Returns the value of the
field
as an int or throws a FormatException if the field is not an int. -
readStringValue(
String field) → String -
Returns the value of the
field
as a String or throws a FormatException if the field is not a String.