Line data Source code
1 : part of 'main.dart'; 2 : 3 : class InitialUrl { 4 : final String? url; 5 : final bool fromValidates; 6 : 7 0 : const InitialUrl({this.url, this.fromValidates = false}) 8 : : assert( 9 0 : url == null || fromValidates == false, 10 : 'You can either initialize the url from the state or from a custom one but not both.', 11 : ), 12 : assert( 13 0 : url != null || fromValidates != false, 14 : 'If you use initialUrl, either provide a url of set fromValidates to true to infer the url from the state.', 15 : ); 16 : }