getPropertyAsInt method

int? getPropertyAsInt(
  1. String key, [
  2. int? def
])

Gets a property with key. Returns the value as int.

def The default value if key not found.

Implementation

int? getPropertyAsInt(String key, [int? def]) =>
    getPropertyAs(key, parseInt, def);