detectNetwork method

dynamic detectNetwork()

Implementation

detectNetwork() {
  // TODO:
}