asBool function

bool? asBool(
  1. Object? value
)

Implementation

bool? asBool(Object? value) => value is bool ? value : null;