UriExtensions extension

Provides extended methods for Uri.

Uri用の拡張メソッドを提供します。

on

Methods

first({String separator = "/"}) String
Divides a Uri by separator and returns the first part.
last({String separator = "/"}) String
Divides a Uri by separator and returns the last part.
parentPath({String separator = "/"}) Uri
Uri is divided by separator and moved one level up.
splitLength({String separator = "/"}) int
Divides Uri by separator and returns the number of elements.
trimQuery() Uri
Trims Uri query characters (after ?).