With this package you can get current link from users browser, using function getHref()
. So the final code could look like this:
import 'package:window_location_href/window_location_href.dart';
final String url = getHref();
Uri uri = new Uri.dataFromString(url);
String codeParam = uri.queryParameters['code'];
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…