fromJson method

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

Implementation

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

  switch (json) {
    case 'padded':
      return MaterialTapTargetSize.padded;

    case 'shrinkWrap':
      return MaterialTapTargetSize.shrinkWrap;
  }

  throw 'Unsuported_Json_Value';
}