fromJson method

  1. @override
InteractiveInkFeatureFactory? fromJson(
  1. String? json
)
override

Implementation

@override
InteractiveInkFeatureFactory? fromJson(String? json) {
  if (json == null) return null;

  switch (json) {
    case 'splash':
      return InkSplash.splashFactory;

    case 'ripple':
      return InkRipple.splashFactory;
  }

  throw 'Unsuported_Json_Value';
}