File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 44//
55// SPDX-License-Identifier: BSD-3-Clause
66
7+ import 'package:meta/meta.dart' ;
8+
79/// Holds the interaction options that need to be exposed for application
810/// scripts according to the Thing Description.
911///
1012/// See [WoT Scripting API Specification, Section 8.12][spec link] .
1113///
1214/// [spec link] : https://w3c.github.io/wot-scripting-api/#the-interactionoptions-dictionary
15+ @immutable
1316class InteractionOptions {
1417 /// Constructor
15- InteractionOptions ({this .formIndex, this .uriVariables, this .data});
18+ const InteractionOptions ({this .formIndex, this .uriVariables, this .data});
1619
1720 /// Represents an application hint for which Form definition should be used
1821 /// for the given interaction.
19- int ? formIndex;
22+ final int ? formIndex;
2023
2124 /// Represents the URI template variables to be used with the interaction.
22- Map <String , Object >? uriVariables;
25+ final Map <String , Object >? uriVariables;
2326
2427 /// Represents additional opaque data that needs to be passed to the
2528 /// interaction.
26- Object ? data;
29+ final Object ? data;
2730}
You can’t perform that action at this time.
0 commit comments