methods property

Map<String, Function> methods
final

Implementation

static final Map<String, Function> methods = {
  'greet': () => 'Hello from static method',
  'double': (int x) => x * 2,
  'concat': (dynamic a, dynamic b) => '$a$b',
};