Search
 
SCRIPT & CODE EXAMPLE
 

DART

dart uri

var httpsUri = Uri(
    scheme: 'https',
    host: 'dart.dev',
    path: '/guides/libraries/library-tour',
    fragment: 'numbers');
print(httpsUri); // https://dart.dev/guides/libraries/library-tour#numbers

httpsUri = Uri(
    scheme: 'https',
    host: 'example.com',
    path: '/page/',
    queryParameters: {'search': 'blue', 'limit': '10'});
print(httpsUri); // https://example.com/page/?search=blue&limit=10

final mailtoUri = Uri(
    scheme: 'mailto',
    path: 'John.Doe@example.com',
    queryParameters: {'subject': 'Example'});
print(mailtoUri); // mailto:John.Doe@example.com?subject=Example
Comment

dart uri

var httpsUri = Uri(
    scheme: 'https',
    host: 'dart.dev',
    path: '/guides/libraries/library-tour',
    fragment: 'numbers');
print(httpsUri); // https://dart.dev/guides/libraries/library-tour#numbers

httpsUri = Uri(
    scheme: 'https',
    host: 'example.com',
    path: '/page/',
    queryParameters: {'search': 'blue', 'limit': '10'});
print(httpsUri); // https://example.com/page/?search=blue&limit=10

final mailtoUri = Uri(
    scheme: 'mailto',
    path: 'John.Doe@example.com',
    queryParameters: {'subject': 'Example'});
print(mailtoUri); // mailto:John.Doe@example.com?subject=Example
Comment

PREVIOUS NEXT
Code Example
Dart :: dart store unique values 
Dart :: dart extension function 
Dart :: dart function as variable 
Dart :: flutter layout builder 
Dart :: dart get type of list 
Dart :: flutter back button with data 
Dart :: nodeFocus flutter 
Dart :: dart deep copy list 
Dart :: android studio avd crashing 
Dart :: flutter how to create copy button 
Dart :: alertdialog shape flutter 
Dart :: flutter transform translate 
Dart :: flutter snackbar action button text color 
Dart :: flutter disable container 
Dart :: aws ec2 upload file 
Dart :: bitmapdescriptor flutter 
Dart :: flutter cliprect 
Dart :: what is the use of substring in flutter 
Dart :: get HH:MM time in flutter 
Dart :: flutter datacolumn center text 
Dart :: how to subtract he height of appbar in flutter 
Dart :: dart is keyword 
Dart :: flutter container with custom shape 
Dart :: string null dart 
Dart :: dart string equals 
Dart :: select an item woth index list dart 
Dart :: flutter cachImage 
Dart :: tab color in flutter 
Dart :: constructor with different name flutter 
Dart :: how to remove listtile long pressflutter 
ADD CONTENT
Topic
Content
Source link
Name
1+1 =