log method

void log(
  1. String mesg
)

a nice helper ext method makes this available to every object, chooses a default level of 'debug' and gets the calling object type without needing to do expensive operation to get stacktrace

Implementation

void log(String mesg) => Log.d(runtimeType.toString(), mesg);