ApiPaths class

A utility class for constructing API paths.

Constructors

ApiPaths.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

categories String
The endpoint for fetching categories.
getter/setter pair
products String
The endpoint for fetching products.
getter/setter pair
productsByCategory String
The endpoint for fetching products by category.
getter/setter pair

Static Methods

createUrl({required String path, String pathVariables = ''}) String
Constructs a full URL given a specific API path and optional path variables.