withId method

String withId(
  1. num id
)

Generates a URL with an ID parameter.

Implementation

String withId(num id) {
  return Uri.parse(this).replace(
    queryParameters: {
      "id": "$id",
    },
  ).toString();
}