getAttributeInt method

Future<int?> getAttributeInt(
  1. String tag,
  2. int defaultValue
)

Returns the integer value of the specified tag. If there is no such tag in the image file or the value cannot be parsed as integer, return defaultValue.

Implementation

Future<int?> getAttributeInt(String tag, int defaultValue) =>
    channel.invokeMethod<int>(
        "getAttributeInt", {"tag": tag, "defaultValue": defaultValue});