checkUrl method

bool checkUrl(
  1. String path
)

Implementation

bool checkUrl(String path) {
  if ((path ?? '').startsWith('/')) {
    print('invalid url : $path, please check base or mallBase in assets/config.json');
    return false;
  }
  return true;
}