FeedbackPlatform enum
Platform identifier accepted by the CupThread REST API and Developer Console.
Used to tag feedback submissions, filter feature requests, and define platform-specific feature flags across iOS, macOS, Android, Web, and desktop environments.
Example: Inspecting current platform
final currentPlatform = FeedbackPlatform.current;
print('Running on wire value: ${currentPlatform.wireValue}');
Example: Parsing from server configuration
final platform = FeedbackPlatform.fromWire('ios');
if (platform == FeedbackPlatform.ios) {
print('Targeting iOS platform');
}
Values
- ios → const FeedbackPlatform
-
Apple iOS mobile platform.
const FeedbackPlatform('ios') - macos → const FeedbackPlatform
-
Apple macOS desktop platform.
const FeedbackPlatform('macos') - android → const FeedbackPlatform
-
Google Android mobile platform.
const FeedbackPlatform('android') - universal → const FeedbackPlatform
-
Cross-platform or universal runtime.
const FeedbackPlatform('universal') - web → const FeedbackPlatform
-
Web browser runtime (HTML/CanvasKit/WASM).
const FeedbackPlatform('web')
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- wireValue → String
-
Wire string representation sent over HTTP payloads.
final
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
- current → FeedbackPlatform
-
Returns the detected FeedbackPlatform for the current host environment.
no setter
Static Methods
-
fromWire(
String? value) → FeedbackPlatform? - Parses a wire string value into its matching FeedbackPlatform enum instance.
Constants
-
values
→ const List<
FeedbackPlatform> - A constant List of the values in this enum, in order of their declaration.